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