File: rules

package info (click to toggle)
age-plugin-tpm 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 196 kB
  • sloc: makefile: 23
file content (20 lines) | stat: -rwxr-xr-x 667 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
#!/usr/bin/make -f

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

# Hack around that we don't include the TPM simulator because it
# doesn't work on ppc64el/s390x.

execute_after_dh_auto_build:
	rm -fv debian/_build/src/github.com/foxboron/age-plugin-tpm/cmd/age-plugin-tpm/main_test.go
	rm -fv debian/_build/src/github.com/foxboron/age-plugin-tpm/plugin/crypto_test.go
	rm -fv debian/_build/src/github.com/foxboron/age-plugin-tpm/plugin/identity_test.go

SKIP=TestPlugin
override_dh_auto_test:
	dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP)
	-dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP)

override_dh_auto_install:
	dh_auto_install -- --no-source