debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_INSTALL_EXTRA := README.md |
| 4 | export DH_GOLANG_EXCLUDES := cmd vendor |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 8 | |
| 9 | # Prune test artifacts left by the test suite: |
| 10 | override_dh_auto_install: DIR=$(CURDIR)/_build/src/github.com/nxadm/tail |
| 11 | override_dh_auto_install: |
| 12 | rm -rf $(DIR)/.test/ |
| 13 | dh_auto_install |