debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_INSTALL_EXTRA := \ |
| 4 | $(wildcard internal/gen/templates/*.tmpl) \ |
| 5 | $(wildcard internal/tools/docgen/templates/*.tmpl) |
| 6 | |
| 7 | %: |
| 8 | dh $@ --builddirectory=debian/_build --buildsystem=golang |
| 9 | |
| 10 | execute_after_dh_install: |
| 11 | rm -fv $(CURDIR)/debian/addchain/usr/bin/release |
| 12 | rm -fv $(CURDIR)/debian/addchain/usr/bin/docgen |
| 13 | |
| 14 | override_dh_auto_test: |
| 15 | dh_auto_test $(DH_BUILD_OPTS) -- -timeout=30m |