#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

# Work around quilt patch inability to preserve file modes or
# represent file deletion.  This is done here because, by coincidence,
# it creates trouble only during testing.  (a) If test.cc is present,
# when "make test" runs it tries to compile test.cc rather than
# running the tests.  (b) The test scripts must be executable.
execute_before_dh_auto_test:
	chmod --changes +x test0 test1 test2
	-rm --verbose --force test.cc err.h patchlevel.h err.3 err.c
