| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 | |
| 5 | %: |
| 6 | dh $@ --builddirectory=_build --buildsystem=golang |
| 7 | |
| 8 | B = $(CURDIR)/debian/tmp/usr/bin |
| 9 | M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 10 | |
| 11 | ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 12 | execute_before_dh_installman-arch: |
| 13 | mkdir -pv $(M) |
| 14 | env PATH=$(PATH):$(B) \ |
| 15 | help2man \ |
| 16 | --no-info \ |
| 17 | --no-discard-stderr \ |
| 18 | --version-string="$(DEB_VERSION)" \ |
| 19 | --include debian/attest-tool.h2m \ |
| 20 | --output $(M)/attest-tool.1 \ |
| 21 | attest-tool |
| 22 | endif |
| 23 | |
| 24 | # https://github.com/google/go-attestation/issues/514 |
| 25 | ifeq ($(DEB_HOST_ARCH),s390x) |
| 26 | override_dh_auto_test: |
| 27 | -dh_auto_test $(DH_BUILD_OPTS) |
| 28 | endif |