#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := examples protoc-gen-swagger

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

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

override_dh_auto_test:
	# runtime failed to build
	DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) runtime" \
	dh_auto_test

override_dh_installexamples:
	dh_installexamples -X.gitignore
