debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_EXCLUDES := examples |
| 4 | |
| 5 | %: |
| 6 | dh $@ --builddirectory=_build --buildsystem=golang |
| 7 | |
| 8 | execute_before_dh_auto_test: |
| 9 | # TestTemplateFuncs loads templatehelper files using a relative path, |
| 10 | # so we need to copy the files manually. |
| 11 | mkdir -p _build/src/github.com/muesli/termenv/testdata |
| 12 | cp testdata/templatehelper* _build/src/github.com/muesli/termenv/testdata |
| 13 | |
| 14 | execute_before_dh_auto_install: |
| 15 | rm -r _build/src/github.com/muesli/termenv/testdata |