#!/usr/bin/make -f

PACKAGE = leafpad

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

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_auto_test:
	# The tests would consider Quilt .pc/ directory as
	# a part of translation POTFILES. Dynamically exclude all.

	( find .pc/ -type f > po/POTFILES.skip )
	dh_auto_test
	rm -f po/POTFILES.skip

override_dh_installman: man
	dh_installman
	# Remove encofing, UTF is the default.
	sed --in-place '/Encoding/d' \
	debian/$(PACKAGE)/usr/share/applications/*.desktop

%:
	dh $@

.PHONY: man

# End of file
