Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk # DEB_VERSION
4
5 export DH_GOLANG_BUILDPKG="github.com/sigstore/cosign/cmd/cosign"
6
7 %:
8 dh $@ --builddirectory=_build --buildsystem=golang
9
10 execute_after_dh_auto_install:
11 rm -fv $(CURDIR)/debian/tmp/usr/share/gocode/src/github.com/sigstore/cosign/test/testdata/test.wasm
12
13 B = $(CURDIR)/debian/tmp/usr/bin
14 M = $(CURDIR)/debian/tmp/usr/share/man/man1
15
16 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
17 execute_before_dh_installman-arch:
18 mkdir -pv $(M)
19 help2man --version-string="$(DEB_VERSION)" \
20 --no-info --no-discard-stderr \
21 --name="Container Signing/Verification/Storage tool" \
22 --output $(M)/cosign.1 \
23 $(B)/cosign
24 endif