Update domain name to kpe.io
[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 export DEB_BUILD_HARDENING=1
15 export DPKG_EXPORT_BUILDFLAGS=1
16 export DEB_BUILD_MAINT_OPTIONS="hardening=+all" 
17 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
18 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
19 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
20 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
21 CFLAGS+=-D_FORTIFY_SOURCE=2
22
23
24 configure: configure-stamp
25 configure-stamp:
26         dh_testdir
27         touch configure-stamp
28
29
30 build: build-stamp build-arch build-indep
31
32 build-stamp: configure-stamp
33         dh_testdir
34         $(MAKE)
35         touch build-stamp
36
37 clean:
38         dh_testdir
39         dh_testroot
40         rm -f build-stamp configure-stamp
41         $(MAKE) clean
42         dh_clean
43
44 install: build
45         dh_testdir
46         dh_testroot
47         dh_prep
48         dh_installdirs
49         DPKG_EXPORT_BUILDFLAGS=1
50         $(MAKE)
51         dh_install wdq2wav usr/bin
52
53 binary-indep: 
54
55 binary-arch: install
56         dh_testdir
57         dh_testroot
58         dh_installdocs
59         dh_installexamples
60         dh_installmenu
61         dh_installcron
62         dh_installman wdq2wav.1
63         dh_installinfo
64         dh_installchangelogs 
65         dh_link
66         dh_strip
67         dh_compress
68         dh_fixperms
69         dh_installdeb
70         dh_shlibdeps
71         dh_gencontrol
72         dh_md5sums
73         dh_builddeb
74
75 build-indep:
76
77 build-arch:
78
79 binary: clean binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install configure