#!/usr/bin/make -f

BUILDDIR := $(shell perl -w -MDebian::Debhelper::Buildsystem::golang -e \
        'print Debian::Debhelper::Buildsystem::golang->new()->get_builddir()')
DH_GOPKG := github.com/jtacoma/uritemplates

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

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=golang
	# Include test fixtures.
	cp -av tests $(BUILDDIR)/src/$(DH_GOPKG)/
