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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_auto_install:
	make install PREFIX=debian/commit-patch/usr
	# No need for another copy of the GPL:
	rm debian/commit-patch/usr/share/doc/commit-patch/COPYING
	# Installed by dh_installchangelogs:
	rm debian/commit-patch/usr/share/doc/commit-patch/Changes
	# To comply with https://www.debian.org/doc/packaging-manuals/debian-emacs-policy
	mkdir -p debian/commit-patch/usr/lib/emacsen-common/packages/compat
	echo 0 > debian/commit-patch/usr/lib/emacsen-common/packages/compat/commit-patch

# Skip tests. They aren't mature enough to offer any benefit during packaging.
override_dh_auto_test:
	true

%:
	dh  $@
