| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | %: |
| 4 | dh $@ --builddirectory=debian/_build --buildsystem=golang |
| 5 | |
| 6 | override_dh_installman: |
| 7 | # Check binary exist. Fix binary-all FTBFS. |
| 8 | if [ -f debian/goxkcdpwgen/usr/bin/goxkcdpwgen ]; then \ |
| 9 | help2man --no-info \ |
| 10 | --no-discard-stderr \ |
| 11 | --name="xkcd style password generator library and cli tool" \ |
| 12 | debian/goxkcdpwgen/usr/bin/goxkcdpwgen > debian/goxkcdpwgen.1; \ |
| 13 | fi |
| 14 | dh_installman |