| 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/machineid/usr/share/man/man1 |
| 10 | |
| 11 | ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 12 | execute_before_dh_installman-arch: |
| 13 | mkdir -pv $(M) |
| 14 | help2man --version-string="$(DEB_VERSION)" \ |
| 15 | --no-info --no-discard-stderr \ |
| 16 | --opt-include debian/machineid.h2m \ |
| 17 | --output $(M)/machineid.1 \ |
| 18 | $(B)/machineid |
| 19 | endif |