Install csc.schema with the package.
[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         $(CC) -DFULL_PATH='"/usr/lib/csc/ceoquery"' -o build/ceoquery misc/setuid-prog.c
12         $(CC) -DFULL_PATH='"/usr/lib/csc/csc-chfn"' -o build/csc-chfn misc/setuid-prog.c
13         $(CC) -DFULL_PATH='"/usr/lib/csc/csc-chsh"' -o build/csc-chsh misc/setuid-prog.c
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         dh_clean
20         rm -f build-stamp
21         rm -rf build/
22         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
23
24 install: build
25         dh_testdir
26         dh_testroot
27
28         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
29                        usr/lib/csc usr/bin etc/ldap/schema
30         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
31         dh_install etc/* etc/csc/
32         dh_install sql/* usr/share/csc/
33
34         dh_install bin/ceo bin/addhomedir bin/ceoquery bin/csc-chsh bin/csc-chfn usr/lib/csc/
35         dh_install build/ceo 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