#!/usr/bin/make -f
export DH_OPTIONS
export DH_GOPKG := github.com/coreos/etcd
export DH_GOLANG_EXCLUDES := github.com/coreos/etcd/Godeps/.*

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

override_dh_auto_configure:
	dh_auto_configure
	./debian/cleanup_third_party.sh

override_dh_auto_test:
ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH),amd64)
	./test
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf bin/
	rm -rf gopath/
