| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
# Prevent pass and secretservice from being built as /usr/bin/cmd |
| 6 |
export DH_GOLANG_EXCLUDES := pass/cmd secretservice/cmd |
| 7 |
export DH_GOLANG_EXCLUDES_ALL := 0 |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 11 |
|
| 12 |
execute_after_dh_auto_build: |
| 13 |
GOCACHE=$(CURDIR)/_build/go-build \ |
| 14 |
$(MAKE) VERSION=$(DEB_VERSION_UPSTREAM) REVISION="" pass secretservice |
| 15 |
|
| 16 |
ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES})) |
| 17 |
execute_before_dh_installman-arch: |
| 18 |
pandoc -s -t man debian/docker-credential-pass.1.md -o debian/docker-credential-pass.1 |
| 19 |
pandoc -s -t man debian/docker-credential-secretservice.1.md -o debian/docker-credential-secretservice.1 |
| 20 |
endif |
| 21 |
|
| 22 |
execute_after_dh_auto_clean: |
| 23 |
rm -rf bin |