#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := README.md
export DH_GOLANG_EXCLUDES := cmd vendor

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

# Remove README.md (used for tests), and artifacts left by the test suite:
override_dh_auto_install: DIR=$(CURDIR)/_build/src/github.com/nxadm/tail
override_dh_auto_install:
	rm -rf $(DIR)/README.md $(DIR)/.test/
	dh_auto_install
