477eb79a6c4c56d9015360d3356fd0455eb77008
[wdq2wav.git] / debian / rules
1 #!/usr/bin/make -f
2
3 CFLAGS = -Wall -g
4
5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6         CFLAGS += -O0
7 else
8         CFLAGS += -O2
9 endif
10 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
11         INSTALL_PROGRAM += -s
12 endif
13
14 configure: configure-stamp
15 configure-stamp:
16         dh_testdir
17         touch configure-stamp
18
19
20 build: build-stamp build-arch build-indep
21
22 build-stamp: configure-stamp
23         dh_testdir
24         $(MAKE)
25         touch build-stamp
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31         $(MAKE) clean
32         dh_clean
33
34 install: build
35         dh_testdir
36         dh_testroot
37         dh_prep
38         dh_installdirs
39         DPKG_EXPORT_BUILDFLAGS=1
40         env DEB_BUILD_MAINT_OPTIONS="hardening=+all" DPKG_EXPORT_BUILDFLAGS=1 CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" $(MAKE)
41         dh_install wdq2wav usr/bin
42
43 binary-indep: 
44
45 binary-arch: install
46         dh_testdir
47         dh_testroot
48         dh_installdocs
49         dh_installexamples
50         dh_installmenu
51         dh_installcron
52         dh_installman wdq2wav.1
53         dh_installinfo
54         dh_installchangelogs 
55         dh_link
56         dh_strip
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65 build-indep:
66
67 build-arch:
68
69 binary: clean binary-indep binary-arch
70 .PHONY: build clean binary-indep binary-arch binary install configure