#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

execute_before_dh_autoreconf:
	@echo "dpkg-source cannot properly handle deletion and configure.in confuses autoreconf."
	-rm -f --verbose configure.in
	-rm -rf --verbose libltdl

override_dh_auto_configure:
	dh_auto_configure -- --enable-static

override_dh_auto_test:
	dh_auto_test || echo "Warning: ***Ignoring test failure.***"

execute_after_dh_installman:
	mv debian/libmcrypt-dev/usr/share/man/man3/mcrypt.3 \
	   debian/libmcrypt-dev/usr/share/man/man3/libmcrypt.3
