chiark / gitweb /
d6450e1ba2f1d2c05e096e293e979486e728e129
[mLib-python] / debian / rules
1 #! /usr/bin/make -f
2
3 export DH_COMPAT = 4
4
5 build: build-stamp
6
7 build-stamp:
8         python setup.py build
9         touch build-stamp
10
11 clean:
12         dh_clean
13         make clean
14         rm -rf build build-stamp
15
16 install: build
17         dh_clean
18         python setup.py build
19         python setup.py install --root=debian/python-mlib
20
21 binary-arch: install
22         dh_testdir -a
23         dh_testroot -a
24         dh_compress -a
25         dh_installdocs -a
26         dh_strip -a
27         dh_shlibdeps -a
28         dh_python -a
29         dh_gencontrol -a
30         dh_fixperms -a
31         dh_installdeb -a
32         dh_md5sums -a
33         dh_builddeb -a
34
35 binary: binary-arch
36
37 source:
38         rm -rf dist/*.tar.gz dist/=deb=
39         python setup.py sdist
40         mkdir dist/=deb=
41         cd dist/=deb=; tar xvfz ../*.tar.gz
42         d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/dist/=deb=/*
43         rm -rf dist/=deb=
44
45 .PHONY: binary binary-arch binary-indep clean install source build