Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/platform/metrics_daemon/debian/rules

Issue 1521015: build: Delete files from the previous build system. (Closed)
Patch Set: merge Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/metrics_daemon/debian/dirs ('k') | src/platform/metrics_daemon/make_pkg.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 CFLAGS = -Wall -g
11
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13 CFLAGS += -O0
14 else
15 CFLAGS += -O2
16 endif
17
18 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
20 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
21 CC := gcc
22 CCC := g++
23 else
24 CC := $(DEB_HOST_GNU_TYPE)-gcc
25 CCC := $(DEB_HOST_GNU_TYPE)-g++
26 endif
27
28 build: build-stamp
29 build-stamp:
30 dh_testdir
31 $(MAKE) CC=$(CC) CCC=$(CCC)
32 touch $@
33
34 clean:
35 dh_testdir
36 dh_testroot
37 rm -f build-stamp
38 $(MAKE) clean
39 dh_clean
40
41 install: build
42 dh_testdir
43 dh_testroot
44 dh_clean -k
45 dh_installdirs
46 mkdir -p $(CURDIR)/debian/chromeos-metrics-daemon
47 $(MAKE) DESTDIR=$(CURDIR)/debian/chromeos-metrics-daemon install
48
49 binary-indep:
50
51
52 # Build architecture-dependent files here.
53 binary-arch: build install
54 dh_testdir
55 dh_testroot
56 dh_link
57 dh_strip
58 dh_compress
59 dh_fixperms
60 dh_installdeb
61 dh_shlibdeps
62 dh_gencontrol
63 dh_md5sums
64 dh_builddeb
65
66 binary: binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install
OLDNEW
« no previous file with comments | « src/platform/metrics_daemon/debian/dirs ('k') | src/platform/metrics_daemon/make_pkg.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698