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
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
-include /usr/share/python/python.mk
build: build-indep
build-indep:
dh build --before auto_build
/usr/bin/python setup.py build
/usr/bin/python tests/compare.py
dh build --after auto_build
rst2man -q README debian/dtrx.1
touch $@
clean:
dh clean --with python_central
rm -rf $(CURDIR)/tests/testscript.sh $(CURDIR)/tests/unreadable-file.*
/usr/bin/python setup.py clean
rm -f debian/dtrx.1 build-indep
install: build
dh install --with python_central --before auto_install
/usr/bin/python setup.py install --root $(CURDIR)/debian/dtrx $(py_setup_install_args)
dh install --with python_central --after auto_install
binary: binary-arch binary-indep
binary-arch:
binary-indep: build install
dh binary-indep --with python_central
.PHONY: build clean binary-arch binary-indep binary install
|