Add mysql database stuff
[public/pyceo-broken.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         cd src && make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
8
9 clean:
10         dh_testdir
11         dh_testroot
12         dh_clean
13         $(MAKE) -C src clean
14         python setup.py  -q clean -a --build-base=build-ceo
15         python setupd.py -q clean -a --build-base=build-ceod
16         rm -rf build-ceo build-ceod
17
18 install: build
19         dh_testdir
20         dh_testroot
21         dh_installdirs
22         python setup.py  -q build --build-base=build-ceo  install --no-compile -O0 --prefix=/usr --root=debian/ceo-python
23         python setupd.py -q build --build-base=build-ceod install --no-compile -O0 --prefix=/usr --root=debian/ceo-daemon \
24             --install-scripts=/usr/lib/ceod
25         $(MAKE) -C src DESTDIR=$(CURDIR)/debian/ceo-clients PREFIX=/usr install_clients
26         $(MAKE) -C src DESTDIR=$(CURDIR)/debian/ceo-daemon PREFIX=/usr install_daemon
27
28 binary-arch: build install
29         dh_testdir
30         dh_testroot
31         dh_installchangelogs
32         dh_installdocs
33         dh_installexamples
34         dh_installinit --name ceod -- start 95 2 3 4 5 . stop 05 0 1 6 .
35         dh_install
36         dh_installman
37         dh_link
38         dh_strip
39         dh_compress
40         dh_fixperms
41         dh_pysupport
42         dh_installdeb
43         dh_shlibdeps
44         dh_gencontrol
45         dh_md5sums
46         dh_builddeb
47
48 binary-indep:
49
50 binary: binary-indep binary-arch
51
52 .PHONY: build clean binary-indep binary-arch binary install