File: rules

package info (click to toggle)
golang-github-googleapis-enterprise-certificate-proxy 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 428 kB
  • sloc: sh: 87; makefile: 11
file content (14 lines) | stat: -rwxr-xr-x 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

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

execute_before_dh_auto_configure:
	if ! [ -d _build/src/signer/util ]; then \
	  rm -rf _build/src/signer && mkdir -p _build/src; \
	  cp -ra internal/signer/linux _build/src/signer; \
	fi
	if ! [ -d _build/src/github.com/googleapis/enterprise-certificate-proxy/internal/signer/linux/util ]; then \
	  mkdir -p _build/src/github.com/googleapis/enterprise-certificate-proxy/internal/signer/util 2>/dev/null || true; \
	  cp -ra internal/signer/util/test_data _build/src/github.com/googleapis/enterprise-certificate-proxy/internal/signer/util ; \
	fi