#!/usr/bin/make -f

include debian/debian-autotools.mk
include debian/debian-save-restore.mk

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# In original sources. Keep these
FILE_LIST_PRESERVE = \
 config.guess \
 config.sub \
 autom4te.cache/output.0 \
 autom4te.cache/requests \
 autom4te.cache/traces.0

override_dh_clean:
	$(file-state-save)
	dh_clean
	$(file-state-restore)

override_dh_auto_configure:
	$(config-prepare)
	dh_auto_configure
	$(config-restore)

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

%:
	dh $@

# end of file
