#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/dpkg/default.mk # Fails to build with the following settings # export DEB_BUILD_MAINT_OPTIONS = hardening=+all # export DEB_BUILD_MAINT_OPTIONS = hardening=+pie export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow %: dh $@ execute_after_dh_auto_install: cd python && \ python3 setup.py install --root=../debian/gubbins --install-layout=deb --install-lib=/usr/share/gubbins --install-scripts=/usr/share/gubbins execute_after_dh_install: find debian -name "*.la" -delete find debian -name "*.a" -delete mkdir -p debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE) mv debian/$(DEB_SOURCE)/usr/bin/gubbins debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE) execute_after_dh_clean: rm -rf python/*.egg-info python/build python/Makefile find . -name "*.pyc" -delete rm -rf python/output_alignment python/tmp* tests/.deps override_dh_auto_test: # make sure test data will not be changed (at least tests/data/multiple_recombinations.tre is removed in the test) cp -a tests/data tests/data.save dh_auto_test rm -rf tests/data mv tests/data.save tests/data