Bump version to 0.4.0
[public/pyceo-broken.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PYTHON := python2.4
4
5 build:
6         cd src && make
7
8 clean:
9         dh_testdir
10         dh_testroot
11         dh_clean
12         rm -f build-stamp
13         rm -rf build/
14         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
15         cd src && make clean
16
17 install: build
18         dh_testdir
19         dh_testroot
20
21         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
22                        usr/lib/csc usr/bin etc/ldap/schema
23         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
24         dh_install etc/* etc/csc/
25
26         dh_install bin/ceo bin/ceoquery bin/csc-chsh bin/csc-chfn src/addmember src/addclub usr/bin/
27         dh_install misc/csc.schema etc/ldap/schema/
28         
29 binary-arch: build install
30         dh_testdir
31         dh_testroot
32         dh_installchangelogs 
33         dh_installdocs docs/*
34         dh_installexamples
35         dh_install
36 #       dh_installlogrotate
37 #       dh_installcron
38         dh_installman
39         dh_link
40         dh_strip
41         dh_compress
42         dh_fixperms
43 #       dh_perl
44 #       dh_python
45 #       dh_makeshlibs
46         dh_installdeb
47         dh_shlibdeps
48         dh_gencontrol
49         dh_md5sums
50         dh_builddeb
51
52 binary-indep:
53
54 binary: binary-indep binary-arch
55
56 .PHONY: build clean binary-indep binary-arch binary install