#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	rm -rf debian/testtmp
	mkdir debian/testtmp
	env PATH=$(CURDIR):$(PATH) AUTOPKGTEST_TMP=$(CURDIR)/debian/testtmp debian/tests/simple
	rm -rf debian/testtmp
endif

# Deliberately empty targets
override_dh_auto_install:
