#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := test

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_fixperms:
	dh_fixperms
	find debian -name '*.go' -exec chmod -x {} +

override_dh_auto_test:
	dh_auto_test
	rm _build/src/github.com/*/*/test.txt