#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export GOPATH := $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)

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

override_dh_auto_build-arch:
	dh_auto_build -- -tags novault

override_dh_auto_build-indep:
	$(MAKE) -C docs html

override_dh_auto_test:
	cp -a cookbook/*.json $(GOPATH)/src/github.com/ctdk/goiardi/cookbook
	dh_auto_test -- -tags novault

override_dh_install:
	dh_install --fail-missing --exclude=go-chef
