File: rules

package info (click to toggle)
golang-github-zmap-zlint 3.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,008 kB
  • sloc: sh: 162; makefile: 38
file content (16 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DH_GOPKG := github.com/zmap/zlint
export DH_GOLANG_EXCLUDES := testdata/
export DH_GOLANG_BUILDPKG := github.com/zmap/zlint/v3/cmd/zlint github.com/zmap/zlint/v3/cmd/zlint-gtld-update

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 -- $(LDFLAGS)