#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk BUILDTIME = $(shell date --date='@${SOURCE_DATE_EPOCH}' --utc +'%Y-%m-%dT%H:%M:%SZ') GITCOMMIT = $(shell autorevision -f -o autorevision.cache -s VCS_SHORT_HASH) GO_LDFLAGS := "-X 'main.Version=$(DEB_VERSION_UPSTREAM)' -X 'main.GitCommit=$(GITCOMMIT)' -X 'main.BuildTime=$(BUILDTIME)'" %: dh $@ --builddirectory=_build --buildsystem=golang --with=golang override_dh_auto_build: dh_auto_build -O--buildsystem=golang -- --ldflags $(GO_LDFLAGS) override_dh_auto_install: dh_auto_install -- --no-source