#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow,+fortify

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	rm -f config.guess config.sub
	dh_autoreconf --as-needed

override_dh_install:
	dh_install
	dh_missing --list-missing

override_dh_installdocs:
	dh_installdocs -p libmatchbox1 -XAUTHORS -XREADME
	dh_installdocs -p libmatchbox-dev
	dh_installdocs -p libmatchbox-doc --doc-main-package=libmatchbox1

override_dh_clean:
	-rm -rf doc/man
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- --enable-pango --enable-jpeg --enable-png --enable-doxygen-docs