#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := \
	arm64/arm64asm/inst.json \
	x86/x86asm/testdata/libmach8db.c

# We want to build only the library packages themselves, not the accompanying
# binaries.
export DH_GOLANG_EXCLUDES := \
	arm/armmap \
	arm/armspec \
	arm64/arm64gen \
	arm64/arm64spec \
	loong64/loong64spec \
	ppc64/ppc64map \
	ppc64/ppc64spec \
	ppc64/ppc64util \
	riscv64/riscv64spec \
	s390x/s390xmap \
	s390x/s390xspec \
	s390x/s390xutil \
	x86/x86avxgen \
	x86/x86map \
	x86/x86spec


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