#!/usr/bin/make -f

DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))

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

override_dh_auto_install:
	dh_auto_install

	find debian/$(DEB_SOURCE_PACKAGE)-dev/ -name "testdata" -type d | xargs rm -rf
