#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := cmd/chromad/static cmd/chromad/templates

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

execute_after_dh_auto_build:
	pandoc -s -t man debian/chroma.1.md -o debian/chroma.1

execute_after_dh_strip:
	rice -v -i ./cmd/chromad append --exec debian/golang-chroma/usr/bin/chromad
