#!/usr/bin/make -f

export DH_GOPKG := github.com/coredhcp/coredhcp
export DH_GOLANG_INSTALL_ALL := 1

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

override_dh_auto_test:
	@echo "Tests are disabled for now"

override_dh_install:
	dh_install
	rm -f $(CURDIR)/debian/golang-github-coredhcp-coredhcp-dev/usr/share/gocode/src/github.com/coredhcp/coredhcp/.gitignore

	mkdir -p $(CURDIR)/debian/coredhcp-server/etc/coredhcp
	cp cmds/coredhcp/config.yml.example $(CURDIR)/debian/coredhcp-server/etc/coredhcp/config.yml

override_dh_missing:
	dh_missing --list-missing
