#!/usr/bin/make -f

export DH_GOLANG_GO_GENERATE := 1
export DH_GOLANG_EXCLUDES := s2/cmd

# skip on armhf due to out of memory
ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
export DEB_BUILD_OPTIONS := $DEB_BUILD_OPTIONS nocheck
endif

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

override_dh_auto_install:
	dh_auto_install -- --no-binaries

override_dh_strip_nondeterminism:
	dh_strip_nondeterminism -X/testdata/
