#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

LDFLAGS := -X main.version=$(DEB_VERSION)

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang

override_dh_auto_build:
	dh_auto_build -- -ldflags '$(LDFLAGS)'

override_dh_auto_install:
	dh_auto_install -- --no-source
