#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE = 1

# DH_GOPKG is the upstream path which you would normally “go get”.
# Using it allows us to build applications without patching locations.
export DH_GOPKG = github.com/prometheus/procfs

BUILDDIR := $(shell perl -w -MDebian::Debhelper::Buildsystem::golang -e \
        'print Debian::Debhelper::Buildsystem::golang->new()->get_builddir()')

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

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