debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 | |
| 5 | %: |
| 6 | dh $@ --builddirectory=_build --buildsystem=golang |
| 7 | |
| 8 | B = $(CURDIR)/debian/tmp/usr/bin |
| 9 | M = $(CURDIR)/debian/txtpbfmt/usr/share/man/man1 |
| 10 | |
| 11 | execute_after_dh_auto_install: |
| 12 | ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 13 | mkdir -pv $(M) |
| 14 | env PATH=$(PATH):$(B) \ |
| 15 | help2man --no-info --version-string="$(DEB_VERSION)" \ |
| 16 | --no-discard-stderr -Idebian/txtpbfmt.h2m \ |
| 17 | txtpbfmt -o $(M)/txtpbfmt.1 |
| 18 | endif |