File: rules

package info (click to toggle)
golang-github-google-go-attestation 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,260 kB
  • sloc: sh: 158; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 1,189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk # DEB_VERSION

export DH_GOLANG_EXCLUDES := ci

%:
	dh $@ --builddirectory=_build --buildsystem=golang

execute_before_dh_auto_test:
# 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:
	rm -fv _build/src/github.com/google/go-attestation/attest/attest_simulated_tpm20_test.go
# src/github.com/google/go-attestation/attest/application_key_test.go:38:14: undefined: setupSimulatedTPM
	rm -fv _build/src/github.com/google/go-attestation/attest/application_key_test.go
# src/github.com/google/go-attestation/attest/certification_test.go:35:14: undefined: setupSimulatedTPM
	rm -fv _build/src/github.com/google/go-attestation/attest/certification_test.go

B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man/man1

ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
execute_before_dh_installman-arch:
	mkdir -pv $(M)
	env PATH=$(PATH):$(B) \
		help2man \
		--no-info \
		--no-discard-stderr \
		--version-string="$(DEB_VERSION)" \
		--include debian/attest-tool.h2m \
		--output $(M)/attest-tool.1 \
		attest-tool
endif