chiark / gitweb /
setup.py: Update to use pkg-config.
[mLib-python] / debian / rules
CommitLineData
579d0169 1#! /usr/bin/make -f
2
3export DH_COMPAT = 4
4
579d0169 5build: build-stamp
6
7build-stamp:
b0b5aac5 8 python setup.py build
579d0169 9 touch build-stamp
10
11clean:
12 dh_clean
13 make clean
14 rm -rf build build-stamp
15
16install: build
17 dh_clean
b0b5aac5
MW
18 python setup.py build
19 python setup.py install --root=debian/python-mlib
579d0169 20
21binary-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
b0b5aac5 35binary: binary-arch
579d0169 36
37source:
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