#!/usr/bin/make -f

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --parallel --with=systemd

override_dh_clean:
	dh_clean util/fingerprint_impl.hpp util/git_sha.cpp
	$(RM) -r html/ latex/

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_COMPONENTS=0 -DBUILD_TOOLS=1 -DCMAKE_VERBOSE_MAKEFILE=1

override_dh_auto_build-arch:
	dh_auto_build --arch

override_dh_auto_build-indep:
	doxygen obj-*/Doxyfile
	$(RM) html/*.md5

override_dh_install:
	dh_install --list-missing

