#!/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_installexamples:
	dh_installexamples -Xwindows

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
	# ensure failed tests are visible in the buildlog
	$(MAKE) check || /bin/sh -c 'cat test-suite.log; false'
endif

override_dh_compress:
	dh_compress -X examples/002_strip_comments
