#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --buildsystem=pybuild -Ddeveloper

execute_after_dh_auto_build-indep: debian/deken.1

debian/deken.1:
	-help2man -N -n "Externals wrangler for Pure Data" debian/help2man/deken > $@

execute_after_dh_fixperms:
	find debian/deken/ -type f -name "*.hy" -exec chmod a+x {} \;

DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
	debian/.*|.*\.gif
# licensecheck v1
.PHONY: licensecheck
licensecheck:
	LANG=C.UTF-8 licensecheck \
		-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
		--check '.*' --recursive --deb-machine --lines 0 * \
		> debian/copyright_newhints
	cmp debian/copyright_hints debian/copyright_newhints \
		&& rm debian/copyright_newhints
