#!/usr/bin/make -f

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang

# This Debian package vendors a dependency not worth packaging separately
execute_before_dh_auto_configure:
	cp -av debian/vendor vendor/

execute_after_dh_clean:
	rm -rfv vendor/

override_dh_auto_test:
	@echo "TestPass* tests were skipped because they require the pass utility"
	@echo "TestLibSecret* tests were skipped because they require dbus-launch"
	@echo "TestKeyCtl* tests were skipped because keyctl runs with root privileges"
	dh_auto_test -- -skip='TestPass|TestLibSecret|TestKeyCtl'

override_dh_auto_install:
	dh_auto_install -- --no-binaries
