#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# Security Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM

override_dh_auto_configure:
	dh_auto_configure -- \
		-DENABLE_SHARED_EXECUTABLES=YES \
		-DENABLE_SHARED_TESTS=YES \
		-DENABLE_STATIC=NO

execute_before_dh_install-indep:
	rm -f debian/tmp/usr/share/doc/libcork/html/.buildinfo

# Select CMake and skip regeneration of the unused Autotools build system.
%:
	dh $@ --buildsystem=cmake --without autoreconf
