Automated commit for upstream build of version 0.9.0
[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         include /usr/share/dpkg/buildflags.mk
41         $(MAKE)
42 #       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)
43         dh_install wdq2wav usr/bin
44
45 binary-indep: 
46
47 binary-arch: install
48         dh_testdir
49         dh_testroot
50         dh_installdocs
51         dh_installexamples
52         dh_installmenu
53         dh_installcron
54         dh_installman wdq2wav.1
55         dh_installinfo
56         dh_installchangelogs 
57         dh_link
58         dh_strip
59         dh_compress
60         dh_fixperms
61         dh_installdeb
62         dh_shlibdeps
63         dh_gencontrol
64         dh_md5sums
65         dh_builddeb
66
67 build-indep:
68
69 build-arch:
70
71 binary: clean binary-indep binary-arch
72 .PHONY: build clean binary-indep binary-arch binary install configure