#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

override_dh_installchangelogs:
	dh_installchangelogs NEWS

execute_before_dh_clean:
	mv debian/backup/licenseutils.info doc/ || true
	rm -rf debian/backup

override_dh_auto_configure:
	dh_auto_configure -- --with-bash-completion="/usr/share/bash-completion/completions"

execute_before_dh_auto_build:
	mkdir -p debian/backup/
	cp doc/licenseutils.info debian/backup/

%:
	dh $@
