#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk # DEB_VERSION

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang

B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man

ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
execute_before_dh_installman-arch:
	mkdir -pv $(M)/man1
	help2man --version-string="$(DEB_VERSION)" \
		--name="Omnibor" \
		--no-info \
		$(B)/omnibor \
		-o $(M)/man1/omnibor.1
endif
