Added "addhomedir", a utility to create home directories for new users.
[mspang/pyceo.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         $(CC) -DFULL_PATH='"/usr/lib/csc/addhomedir"' -o build/addhomedir misc/setuid-prog.c
11         touch build-stamp
12
13 clean:
14         dh_testdir
15         dh_testroot
16         dh_clean
17         rm -f build-stamp
18         rm -rf build/
19         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
20
21 install: build
22         dh_testdir
23         dh_testroot
24
25         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
26                        usr/lib/csc usr/bin
27         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
28         dh_install etc/* etc/csc/
29         dh_install sql/* usr/share/csc/
30         
31         dh_install bin/ceo bin/addhomedir usr/lib/csc/
32         dh_install build/ceo build/addhomedir usr/bin/
33         
34 binary-arch: build install
35         dh_testdir
36         dh_testroot
37         dh_installchangelogs 
38         dh_installdocs docs/*
39         dh_installexamples
40         dh_install
41 #       dh_installlogrotate
42 #       dh_installcron
43         dh_installman
44         dh_link
45         dh_strip
46         dh_compress
47         dh_fixperms
48 #       dh_perl
49 #       dh_python
50 #       dh_makeshlibs
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 binary-indep:
58
59 binary: binary-indep binary-arch
60
61 .PHONY: build clean binary-indep binary-arch binary install