#!/usr/bin/make -f

# This package is needed by 'cosign', but it only needs crypto/jose,
# so exclude things that causes dependency bloat.
export DH_GOLANG_EXCLUDES := \
	^go.step.sm/crypto/kms		\
	^go.step.sm/crypto/tpm		\
	^go.step.sm/crypto/nssdb	\
	^go.step.sm/crypto/examples/cloudkms-attestation

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

SKIP="TestGenerateJWK"
override_dh_auto_test:
	-dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP)
	dh_auto_test $(DH_BUILD_OPTS) -- -timeout 25m -skip=$(SKIP)
