#!/usr/bin/make -f export DH_VERBOSE=1 %: dh $@ --buildsystem=golang --with=golang # There is a circular dependency between gomega and ginkgo during testing, so # skip tests. override_dh_auto_test: DEBVERS ?= $(shell dpkg-parsechangelog -SVersion) VERSION ?= $(shell echo '$(DEBVERS)' | sed 's/^[[:digit:]]*://; s/[-].*//') DEBPKGNAME ?= $(shell dpkg-parsechangelog -SSource) gen-orig-tgz: if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ] ; then \ git archive --format=tar.gz --prefix=$(DEBPKGNAME)-$(VERSION)/ \ upstream/$(VERSION) >../$(DEBPKGNAME)_$(VERSION).orig.tar.gz; \ fi