| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1) |
| 4 | DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -) |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 8 | |
| 9 | execute_before_dh_installman: |
| 10 | txt2man -s 1 -v "jose-util" -t "jose-util" \ |
| 11 | -r "$(VERSION)" -d "$(DEBDATE)" debian/manpage/jose-util.txt > debian/manpage/jose-util.1 |
| 12 | |
| 13 | override_dh_auto_test: |
| 14 | dh_auto_test -- -timeout=1h |