#!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export PYBUILD_NAME=cheetah %: dh $@ --with python2,python3,sphinxdoc --buildsys=pybuild override_dh_auto_install: dh_auto_install ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS))$(filter nodoc,$(DEB_BUILD_PROFILES)),) PYTHONPATH=$(CURDIR) $(MAKE) -i -C docs html endif override_dh_auto_clean: dh_auto_clean PYTHONPATH=$(CURDIR) $(MAKE) -i -C docs clean override_dh_install: dh_install # rename utils in python3-cheetah to prevent filename collisions mv debian/python3-cheetah/usr/bin/cheetah debian/python3-cheetah/usr/bin/cheetah3 mv debian/python3-cheetah/usr/bin/cheetah-analyze debian/python3-cheetah/usr/bin/cheetah-analyze3 mv debian/python3-cheetah/usr/bin/cheetah-compile debian/python3-cheetah/usr/bin/cheetah-compile3 override_dh_auto_test: PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PATH=$(CURDIR)/bin:$$PATH python{version} {build_dir}/Cheetah/Tests/Test.py" dh_auto_test