#!/usr/bin/make -f

# Don't use "cmd", as it will match "lincmd".
export DH_GOLANG_EXCLUDES := website internal/cmd internal/gosmith $(wildcard cmd/*)

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

ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
override_dh_auto_test:
	# run out of memory: cannot allocate 4194304-byte block (3459678208 in use)
	-dh_auto_test
endif
