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
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | clean: | |
3 | dh_testdir | |
4 | dh_testroot | |
5 | rm -f build-stamp | |
2 | %: | |
3 | dh $@ | |
6 | 4 | |
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: | |
16 | 6 | CFLAGS="$(CFLAGS)" $(MAKE) WARN=-DI_KNOW_ALL_ABOUT_SUDO |
17 | 7 | CFLAGS="$(CFLAGS)" $(MAKE) +btcflash |
18 | 8 | CFLAGS="$(CFLAGS)" $(MAKE) rpl8 |
19 | 9 | sed -n "/^%changelog$$/,$$ p" dvd+rw-tools.spec > ChangeLog |
10 | dh_auto_build | |
20 | 11 | |
21 | touch $@ | |
22 | ||
23 | install: build | |
24 | dh_testdir | |
25 | dh_testroot | |
26 | dh_prep | |
27 | dh_installdirs | |
28 | ||
12 | override_dh_auto_install: | |
29 | 13 | $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr |
30 | 14 | |
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: | |
40 | 16 | 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 |