1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
PYVERS=$(shell pyversions -vr)
pkgdir = $(CURDIR)/debian/python-tftpy
-include /usr/share/python/python.mk
clean:
dh_testdir
dh_testroot
python ./setup.py clean
find . -name *\.pyc -exec rm {} \;
rm -rf build
dh_clean
build:
build-indep:
build-arch:
build-stamp:
install: $(PYVERS:%=install-python%)
dh_install
install-python%:
python$* setup.py install $(py_setup_install_args) \
--root $(call pkgdir,$*)
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_installchangelogs ChangeLog
dh_installdocs -i
dh_installexamples -i
dh_python2 -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch:
binary: binary-indep binary-arch
.PHONY: build-stamp build-arch build-indep binary binary-arch binary-indep install
|