| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 | |
| 5 | %scip-makefile . . . `%`/: |
| 6 | dh $@scip-makefile . . . `@`. --builddirectory=_build --buildsystem=golang |
| 7 | |
| 8 | Bscip-makefile . . . B. = $(CURDIRscip-makefile . . . CURDIR.)/debian/tmp/usr/bin |
| 9 | Mscip-makefile . . . M. = $(CURDIRscip-makefile . . . CURDIR.)/debian/tmp/usr/share/man/man1 |
| 10 | |
| 11 | ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 12 | execute_before_dh_installman-archscip-makefile . . . execute_before_dh_installman-arch/: |
| 13 | mkdir -pv $(Mscip-makefile . . . M.) |
| 14 | env PATH=$(PATHscip-makefile . . . PATH.):$(Bscip-makefile . . . B.) \ |
| 15 | help2man \ |
| 16 | --no-info \ |
| 17 | --no-discard-stderr \ |
| 18 | --version-string="$(DEB_VERSION)" \ |
| 19 | --include debian/attest-tool.h2m \ |
| 20 | --output $(Mscip-makefile . . . 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_testscip-makefile . . . override_dh_auto_test/: |
| 27 | -dh_auto_test $(DH_BUILD_OPTS) |
| 28 | endif |