#!/usr/bin/make -f
#export DH_VERBOSE=1

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

override_dh_auto_configure:
	dh_auto_configure
	# Include tests files
	cp -rv $(CURDIR)/archive/test-fixtures _build/src/github.com/hashicorp/atlas-go/archive/test-fixtures
	cp -rv $(CURDIR)/archive/test-fixtures/archive-hg/.hg _build/src/github.com/hashicorp/atlas-go/archive/test-fixtures/archive-hg

override_dh_installdocs:
	pandoc -f markdown -t plain -o README README.md
	dh_installdocs README
