#!/usr/bin/make -f # examples/ are main programs. tests/legacy needs github.com/yargevad/filepathx, # which is not in Debian; it is only used by that test package. export DH_GOLANG_EXCLUDES := examples tests/legacy %: dh $@ --builddirectory=debian/_build --buildsystem=golang --with=golang include /usr/share/dpkg/architecture.mk override_dh_auto_test: ifeq ($(DEB_HOST_ARCH),i386) # One spec in tests/integration renders 42.32.as_integer_ratio() and gets # a different ratio with x87 floating point. Ginkgo specs cannot be picked # out with go test -skip, so the package is left out on i386 only. DH_GOLANG_EXCLUDES="examples tests/legacy tests/integration" dh_auto_test else dh_auto_test endif