| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_GOPKG := github.com/zmap/zlint |
| 4 |
export DH_GOLANG_EXCLUDES := testdata/ |
| 5 |
export DH_GOLANG_BUILDPKG := github.com/zmap/zlint/v3/cmd/zlint github.com/zmap/zlint/v3/cmd/zlint-gtld-update |
| 6 |
|
| 7 |
include /usr/share/dpkg/pkg-info.mk |
| 8 |
VERSION = $(shell echo $(DEB_VERSION) | cut -d- -f1) |
| 9 |
LDFLAGS := -ldflags '-X "main.version=$(VERSION)"' |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
dh_auto_build -- $(LDFLAGS) |
| 16 |
|