Don't build ceo-old
[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
33         dh_install bin/ceo bin/addhomedir bin/ceoquery bin/csc-chsh bin/csc-chfn usr/lib/csc/
34         dh_install build/ceo build/addhomedir build/ceoquery build/csc-chsh build/csc-chfn usr/bin/
35         dh_install misc/csc.schema etc/ldap/schema/
36         
37 binary-arch: build install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs 
41         dh_installdocs docs/*
42         dh_installexamples
43         dh_install
44 #       dh_installlogrotate
45 #       dh_installcron
46         dh_installman
47         dh_link
48         dh_strip
49         dh_compress
50         dh_fixperms
51 #       dh_perl
52 #       dh_python
53 #       dh_makeshlibs
54         dh_installdeb
55         dh_shlibdeps
56         dh_gencontrol
57         dh_md5sums
58         dh_builddeb
59
60 binary-indep:
61
62 binary: binary-indep binary-arch
63
64 .PHONY: build clean binary-indep binary-arch binary install