#!/usr/bin/make -f

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

# The config tests load the example config and the docs/rices gallery from
# the source tree.
export DH_GOLANG_INSTALL_EXTRA := config.example.toml docs/rices

%:
	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
