#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk export DH_GOLANG_EXCLUDES := benchmark PKG=github.com/awslabs/soci-snapshotter VERSION = $(DEB_VERSION_UPSTREAM_REVISION) REVISION = $(DEB_VERSION) GO_LDFLAGS = -ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) $(GO_EXTRA_LDFLAGS)' %: dh $@ --builddirectory=_build --buildsystem=golang override_dh_auto_build: dh_auto_build --builddirectory=_build -- $(GO_LDFLAGS) override_dh_auto_test: dh_auto_test --builddirectory=_build -- $(GO_LDFLAGS)