#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) %: # The --buildirectory=build is there so that we can easily get a hold # of documentation and examples, which are not installed by upstream. dh $@ --with=python3 --builddirectory=build override_dh_auto_clean: rm -f GUDHIVersion.cmake rm -rf doc/html dh_auto_clean --builddirectory=build override_dh_auto_build-indep: make -C build doxygen override_dh_auto_test-indep: override_dh_auto_test: dh_auto_test --no-parallel --builddirectory=build override_dh_auto_install: find build/example -executable -type f -exec sh -c 'install -D $$0 debian/tmp/usr/bin/libgudhi-example-$$(basename $$0)' {} \; find example -type f \( -name '*.cpp' -o \( -name '*.txt' -a ! -iname 'cmake*' \) \) -exec sh -c 'install -D -m 644 $$0 debian/tmp/usr/share/doc/libgudhi-examples/$$0' {} \; install -D build/GudhUI/GudhUI debian/tmp/usr/bin/gudhui dh_auto_install --builddirectory=build