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