#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := $(wildcard */go.mod)
export DH_GOLANG_GO_GENERATE := 1

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

execute_after_dh_auto_install:
	find debian/ -type f -name enumgen -delete
	find debian/ -type d -empty -delete