#!/usr/bin/make -f

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

# The config test loads the example config from the top of the source tree.
export DH_GOLANG_INSTALL_EXTRA := config.example.toml

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

override_dh_auto_build:
	dh_auto_build -- -ldflags "-X github.com/noturbob/slat/internal/app.Version=v$(DEB_VERSION_UPSTREAM)"

# Only the program is shipped, not a -dev package of its source.
override_dh_auto_install:
	dh_auto_install -- --no-source
