#!/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 $@ override_dh_auto_install: dh_auto_install # pybuild --install --system=distutils cd python && \ python3 setup.py install --root=../debian/gubbins --install-layout=deb --install-lib=/usr/share/gubbins --install-scripts=/usr/share/gubbins override_dh_install: 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) override_dh_clean: 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