1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/usr/bin/make -f
#export DH_GOLANG_INSTALL_ALL := 1
export DH_GOLANG_INSTALL_EXTRA = testdata
export DH_GOLANG_EXCLUDES := support
%:
dh $@ --buildsystem=golang --with=golang --builddirectory=_build
override_dh_clean:
dh_clean
## Remove Files-Excluded (when built from checkout or non-DFSG tarball):
$(RM) -rv `perl -0nE 'say $$1 if m{^Files\-Excluded\:\s*(.*?)(?:\n\n|Files:|Comment:)}sm;' debian/copyright`
-find vendor -mindepth 1 -type d -empty -delete -printf 'removed %p\n'
override_dh_auto_test:
echo "Diasble tests, need internet to clone test files"
# -PATH="$(CURDIR)/_build/bin:$$PATH" dh_auto_test
|