#!/usr/bin/make -f

export DH_GOPKG := github.com/jacobsa/ogletest
export DH_GOLANG_INSTALL_ALL := 1

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

override_dh_auto_install:
	dh_auto_install $@
	# Since we are using DH_GOLANG_INSTALL_ALL in order to get non-go files
	# in test_cases/* installed, we need to delete extra files such as
	# LICENSE.
	rm $(CURDIR)/debian/golang-github-jacobsa-ogletest-dev/usr/share/gocode/src/github.com/jacobsa/ogletest/LICENSE
