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

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

Issue 523062: monitor_reconfig: Switch to new packaging style (Closed)
Patch Set: Created 10 years, 11 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/monitor_reconfig/debian/control ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/make -f 1 #!/usr/bin/make -f
2 # -*- makefile -*- 2 # -*- makefile -*-
3 %:
4 dh $@
3 5
4 # Uncomment this to turn on verbose mode. 6 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1 7 #export DH_VERBOSE=1
6 8
9 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
12 CC := gcc
13 CXX := g++
14 else
15 CC := $(DEB_HOST_GNU_TYPE)-gcc
tedbo 2010/01/05 18:34:20 I'm curious why we don't have the builder set CC,
cjwatson 2010/01/06 17:35:44 We could, although it was relatively low-win to at
16 CXX := $(DEB_HOST_GNU_TYPE)-g++
17 endif
18
7 CFLAGS = -Wall -g 19 CFLAGS = -Wall -g
8 20
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10 CFLAGS += -O0 22 CFLAGS += -O0
11 else 23 else
12 CFLAGS += -O2 24 CFLAGS += -O2
13 endif 25 endif
14 26
15 build: build-stamp 27 override_dh_auto_build:
16 build-stamp: 28 » $(MAKE) CC=$(CC) CXX=$(CXX) CFLAGS="$(CFLAGS)"
17 » dh_testdir
18 » $(MAKE)
19 » touch $@
20
21 clean:
22 » dh_testdir
23 » dh_testroot
24 » rm -f build-stamp
25 » $(MAKE) clean
26 » dh_clean
27
28 install: build
29 » dh_testdir
30 » dh_testroot
31 » dh_clean -k
32 » dh_installdirs
33 » $(MAKE) DESTDIR=$(CURDIR)/debian/chromeos-monitor-reconfig install
34
35
36 binary-indep:
37
38
39 # Build architecture-dependent files here.
40 binary-arch: build install
41 » dh_testdir
42 » dh_testroot
43 » dh_link
44 » dh_strip
45 » dh_compress
46 » dh_fixperms
47 » dh_installdeb
48 » dh_shlibdeps
49 » dh_gencontrol
50 » dh_md5sums
51 » dh_builddeb
52
53 binary: binary-arch
54 .PHONY: build clean binary-indep binary-arch binary install
OLDNEW
« no previous file with comments | « src/platform/monitor_reconfig/debian/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698