summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 4351fc669eae8296818dda43d234fa5e56e528da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

%:
	dh $@

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DEB_VERSION=$(shell dpkg-parsechangelog -S Version)

override_dh_auto_build:
	GOCACHE=$(CURDIR)/tmp/.cache \
	GOPATH=$(CURDIR)/tmp/gocode \
	go get -u -v github.com/shulhan/go-bindata/cmd/go-bindata ; \
	PATH=$(CURDIR)/tmp/gocode/bin:$(PATH) make GOCACHE=$(CURDIR)/tmp/.cache GOPATH=$(CURDIR)/tmp/gocode VERSION=$(DEB_VERSION)