X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/ea2fc600626d9c59df58fd46a369eacea57f02fe..8546fc9dc62bd41d654b875f7d594cd06fa5dcfb:/debian/rules diff --git a/debian/rules b/debian/rules index d6450e1..6ebce3c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,45 +1,9 @@ #! /usr/bin/make -f -export DH_COMPAT = 4 +CDBS = /usr/share/cdbs/1 -build: build-stamp +DEB_PYTHON_SYSTEM = pycentral +include $(CDBS)/rules/debhelper.mk +include $(CDBS)/class/python-distutils.mk -build-stamp: - python setup.py build - touch build-stamp - -clean: - dh_clean - make clean - rm -rf build build-stamp - -install: build - dh_clean - python setup.py build - python setup.py install --root=debian/python-mlib - -binary-arch: install - dh_testdir -a - dh_testroot -a - dh_compress -a - dh_installdocs -a - dh_strip -a - dh_shlibdeps -a - dh_python -a - dh_gencontrol -a - dh_fixperms -a - dh_installdeb -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-arch - -source: - rm -rf dist/*.tar.gz dist/=deb= - python setup.py sdist - mkdir dist/=deb= - cd dist/=deb=; tar xvfz ../*.tar.gz - d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/dist/=deb=/* - rm -rf dist/=deb= - -.PHONY: binary binary-arch binary-indep clean install source build +###----- That's all, folks --------------------------------------------------