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