#!/usr/bin/make -f # Do not build the generator script for locales export DH_GOLANG_EXCLUDES := gen/* %: dh $@ --builddirectory=debian/_build --buildsystem=golang # Include generated go source file, it's ignored by dh_golang # because it also matches DH_GOLANG_EXCLUDES execute_after_dh_auto_install: cp $(CURDIR)/debian/_build/src/github.com/bep/golocales/golocales.autogen.go \ $(CURDIR)/debian/golang-github-bep-golocales-dev/usr/share/gocode/src/github.com/bep/golocales