#!/usr/bin/make -f
# -*- makefile -*-

export DH_GOLANG_EXCLUDES := gitlab.com/ubports/development/core/nuntium/test
export DH_GOLANG_INSTALL_EXTRA := mms/test_payloads/

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)

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

override_dh_auto_test:
# The test runners panic when running on powerpc64.
ifneq ($(DEB_HOST_ARCH),powerpc)
	dh_auto_test
endif

override_dh_missing:
	dh_missing --fail-missing
