#!/usr/bin/make -f

export DH_GOLANG_GO_GENERATE := 1

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang

# We cannot use DH_GOLANG_EXCLUDES to prevent building of the `gen` binary
# because we need the corresponding source code to be available when running
# autopkgtests. So, manually remove the bin/ directory before performing
# the install steps.
execute_before_dh_auto_install:
	rm -rf ./debian/_build/bin/
