#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DH_GOLANG_EXCLUDES := \
	\.gitignore \
	examples/ \
	# EOL

POD2MAN = pod2man
POD2MAN_OPTS = \
	--utf8 \
	--center='qtc' \
	--release='$(DEB_VERSION)' \
	--date='$(shell date --date="@$(DEB_TIMESTAMP)" +%F)' \
	# EOL

%:
	dh $@ --builddirectory=_build

execute_after_dh_auto_build:
	$(POD2MAN) $(POD2MAN_OPTS) debian/local/qtc.pod >debian/local/qtc.1
