#!/usr/bin/make -f

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

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_clean:
	# Makefile shipped by upstream is broken -> `make distclean` fails.
	# remove the files manually instead of trying to clean automatically
	rm -f Makefile *.o sng config.h config.log config.status stamp-h1

override_dh_auto_test:
	# upstream test requires images shipped with external PNG testsuite,
	# which is not packaged in Debian
