#!/usr/bin/make -f export DH_VERBOSE=1 export DH_OPTIONS export DH_GOPKG := github.com/awslabs/amazon-ecr-credential-helper VERSION := $(shell cat VERSION) GITCOMMIT_SHA := $(shell cat GITCOMMIT_SHA) package_root := "github.com/awslabs/amazon-ecr-credential-helper/ecr-login" %: dh $@ --buildsystem=golang --with=golang include /usr/share/dpkg/architecture.mk override_dh_auto_build: dh_auto_build -- -ldflags "-X $(package_root)/version.Version=$(VERSION) -X $(package_root)/version.GitCommitSHA=$(GITCOMMIT_SHA)" override_dh_clean: dh_testdir -O--buildsystem=golang dh_auto_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang rm -rf ./obj-*-linux-gnu rm -rf ./debian/amazon-ecr-credential-helper rm -rf ./debian/.debhelper rm -rf ./debian/files rm -rf ./bin rm -f ./amazon-ecr-credential-helper_*