New release (version 0.2).
[public/pyceo-broken.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PYTHON := python2.4
4
5 build: build-stamp
6
7 build-stamp:
8         mkdir build
9         $(CC) -DFULL_PATH='"/usr/lib/csc/ceo"' -o build/ceo misc/setuid-prog.c
10         touch build-stamp
11
12 clean:
13         dh_testdir
14         dh_testroot
15         dh_clean
16         rm -f build-stamp
17         rm -rf build/
18         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
19
20 install: build
21         dh_testdir
22         dh_testroot
23
24         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
25                        usr/lib/csc usr/bin
26         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
27         dh_install etc/* etc/csc/
28         dh_install sql/* usr/share/csc/
29         
30         dh_install bin/ceo usr/lib/csc/
31         dh_install build/ceo usr/bin/
32         
33 binary-arch: build install
34         dh_testdir
35         dh_testroot
36         dh_installchangelogs 
37         dh_installdocs docs/*
38         dh_installexamples
39         dh_install
40 #       dh_installlogrotate
41 #       dh_installcron
42         dh_installman
43         dh_link
44         dh_strip
45         dh_compress
46         dh_fixperms
47 #       dh_perl
48 #       dh_python
49 #       dh_makeshlibs
50         dh_installdeb
51         dh_shlibdeps
52         dh_gencontrol
53         dh_md5sums
54         dh_builddeb
55
56 binary-indep:
57
58 binary: binary-indep binary-arch
59
60 .PHONY: build clean binary-indep binary-arch binary install