| 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 |
execute_after_dh_auto_build: |
| 9 |
# src/github.com/google/go-attestation/attest/attest_simulated_tpm20_test.go:29:2: cannot find package "github.com/google/go-tpm-tools/simulator" in any of: |
| 10 |
rm -fv _build/src/github.com/google/go-attestation/attest/attest_simulated_tpm20_test.go |
| 11 |
# src/github.com/google/go-attestation/attest/attest_simulated_test.go:33:2: cannot find package "github.com/google/go-tpm-tools/simulator" in any of: |
| 12 |
rm -fv _build/src/github.com/google/go-attestation/attest/attest_simulated_test.go |
| 13 |
# src/github.com/google/go-attestation/attest/application_key_test.go:38:14: undefined: setupSimulatedTPM |
| 14 |
rm -fv _build/src/github.com/google/go-attestation/attest/application_key_test.go |
| 15 |
# src/github.com/google/go-attestation/attest/certification_test.go:35:14: undefined: setupSimulatedTPM |
| 16 |
rm -fv _build/src/github.com/google/go-attestation/attest/certification_test.go |
| 17 |
|
| 18 |
B = $(CURDIR)/debian/tmp/usr/bin |
| 19 |
M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 20 |
|
| 21 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 22 |
execute_before_dh_installman-arch: |
| 23 |
mkdir -pv $(M) |
| 24 |
env PATH=$(PATH):$(B) \ |
| 25 |
help2man \ |
| 26 |
--no-info \ |
| 27 |
--no-discard-stderr \ |
| 28 |
--version-string="$(DEB_VERSION)" \ |
| 29 |
--include debian/attest-tool.h2m \ |
| 30 |
--output $(M)/attest-tool.1 \ |
| 31 |
attest-tool |
| 32 |
endif |