Merge commit 'ceod'
[mspang/pyceo.git] / debian / rules
1 #!/usr/bin/make -f
2
3 CFLAGS  := -g -O2 -fstack-protector-all -fPIE
4 LDFLAGS := -pie -Wl,--as-needed
5
6 build:
7         python setup.py -q build
8         cd src && make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
9
10 clean:
11         dh_testdir
12         dh_testroot
13         dh_clean
14         $(MAKE) -C src clean
15         python setup.py -q clean -a
16
17 install: build
18         dh_testdir
19         dh_testroot
20         dh_installdirs
21         python setup.py -q install --no-compile -O0 --root=debian/ceo-gui
22         $(MAKE) -C src DESTDIR=$(CURDIR)/debian/ceo-clients PREFIX=/usr install_clients
23         $(MAKE) -C src DESTDIR=$(CURDIR)/debian/ceo-daemon PREFIX=/usr install_daemon
24
25 binary-arch: build install
26         dh_testdir
27         dh_testroot
28         dh_installchangelogs
29         dh_installdocs
30         dh_installexamples
31         dh_install
32         dh_installman
33         dh_link
34         dh_strip
35         dh_compress
36         dh_fixperms
37         dh_pysupport
38         dh_installdeb
39         dh_shlibdeps
40         dh_gencontrol
41         dh_md5sums
42         dh_builddeb
43
44 binary-indep:
45
46 binary: binary-indep binary-arch
47
48 .PHONY: build clean binary-indep binary-arch binary install