Codebase list dvd+rw-tools / ae37574
debian/rules: Use a smaller dh-style rules file (still not good). In particular, this now respects the hardening options passed via CFLAGS and siblings. Git-Dch: Full Rogério Brito 9 years ago
1 changed file(s) with 6 addition(s) and 41 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/make -f
11
2 clean:
3 dh_testdir
4 dh_testroot
5 rm -f build-stamp
2 %:
3 dh $@
64
7 [ ! -f Makefile ] || $(MAKE) clean
8 rm -f ChangeLog
9
10 dh_clean
11
12 build: build-stamp
13 build-stamp:
14 dh_testdir
15
5 override_dh_auto_build:
166 CFLAGS="$(CFLAGS)" $(MAKE) WARN=-DI_KNOW_ALL_ABOUT_SUDO
177 CFLAGS="$(CFLAGS)" $(MAKE) +btcflash
188 CFLAGS="$(CFLAGS)" $(MAKE) rpl8
199 sed -n "/^%changelog$$/,$$ p" dvd+rw-tools.spec > ChangeLog
10 dh_auto_build
2011
21 touch $@
22
23 install: build
24 dh_testdir
25 dh_testroot
26 dh_prep
27 dh_installdirs
28
12 override_dh_auto_install:
2913 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
3014
31 binary: binary-arch
32
33 binary-arch: install
34 dh_testdir
35 dh_testroot
36 dh_installchangelogs ChangeLog
37 dh_installdocs
38 dh_installman
39 dh_install
15 override_dh_strip:
4016 dh_strip --dbg-package=dvd+rw-tools-dbg
41 dh_compress
42 dh_fixperms
43 dh_installdeb
44 dh_shlibdeps
45 dh_gencontrol
46 dh_md5sums
47 dh_builddeb
48
49 binary-indep:
50
51 .PHONY: clean build install binary binary-arch binary-indep