| 1 |
|
| 2 |
|
| 3 |
export DH_OPTIONS |
| 4 |
|
| 5 |
export DH_GOLANG_EXCLUDES := test vendor |
| 6 |
export DH_GOLANG_GO_GENERATE := 1 |
| 7 |
export DH_GOLANG_INSTALL_EXTRA := git/githistory/fixtures tq/schemas locking/schemas docs/man |
| 8 |
export PATH := $(CURDIR)/_build/bin:$(PATH) |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --buildsystem=golang --with=golang |
| 12 |
|
| 13 |
override_dh_clean: |
| 14 |
rm -rf man |
| 15 |
dh_clean |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
dh_auto_build |
| 19 |
rm -f _build/bin/script |
| 20 |
rm -f _build/bin/man |
| 21 |
rm -f _build/bin/cmd |
| 22 |
rm -f _build/bin/trgen |
| 23 |
mkdir man |
| 24 |
asciidoctor -b manpage -D man/ docs/man/*.adoc |