#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: set -e ; \ for doc in pyxbdump pyxbgen pyxbwsdl; do \ docbook-to-man debian/manpage.$$doc.sgml > $$doc.1; \ docbook-to-man debian/manpage.$$doc-py3.sgml > $$doc-py3.1; \ done dh_auto_build PYTHONPATH=.:doc sphinx-build -b html -d _build/.doctrees -N doc _build/html override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e; \ for py in $(shell pyversions -r) $(shell py3versions -r); do \ $$py setup.py test; \ done endif override_dh_auto_install: dh_auto_install set -e ; \ for script in pyxbdump pyxbgen pyxbwsdl ; do \ cp debian/tmp/usr/bin/$$script debian/tmp/usr/bin/$$script-py3 ; \ sed -i '1s/\#\!.*/#!\/usr\/bin\/python/' debian/tmp/usr/bin/$$script ; \ sed -i '1s/\#\!.*/#!\/usr\/bin\/python3/' debian/tmp/usr/bin/$$script-py3 ; \ done override_dh_clean: rm -rf _build dh_clean override_dh_installchangelogs: dh_installchangelogs -- doc/releases.txt