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
33         dh_clean
34
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_prep
39         dh_installdirs
40         dpkg-buildflags $(MAKE) install DESTDIR=$(CURDIR)/debian/wdq2wav
41
42 build-indep:
43
44 build-arch: 
45         dh_testdir
46         dh_testroot
47         dh_installdocs
48         dh_installexamples
49         dh_installmenu
50         dh_installcron
51         dh_installman
52         dh_installinfo
53         dh_installchangelogs 
54         dh_link
55         dh_strip
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary-indep: build-indep
65
66 binary-arch:    build-arch
67
68 binary: binary-indep binary-arch
69 .PHONY: build clean binary-indep binary-arch binary install configure