File: rules

package info (click to toggle)
golang-github-micromdm-scep 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: makefile: 50; sh: 27
file content (17 lines) | stat: -rwxr-xr-x 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export CGO_ENABLED := 0
DH_GOPKG := github.com/micromdm/scep
include /usr/share/dpkg/pkg-info.mk
VERSION = $(shell echo $(DEB_VERSION) | cut -d- -f1)
LDFLAGS := -ldflags '-X "main.version=$(VERSION)"'

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

override_dh_auto_build:
	dh_auto_build $(DH_BUILD_OPTS) -- $(LDFLAGS)

execute_before_dh_install-indep:
	chmod -v -x debian/tmp/usr/share/gocode/src/$(DH_GOPKG)/testdata/PKCSReq.der
	rm -rfv debian/tmp/usr/share/gocode/src/$(DH_GOPKG)/cmd