#!/usr/bin/make -f

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

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-source
	help2man \
		--name 'Remotely open audio channels and a serial port to an Icom RS-BA1 server' \
		--no-info \
		--no-discard-stderr \
		--version-string "$(DEB_VERSION_UPSTREAM)" \
		debian/kappanhang/usr/bin/kappanhang \
		> kappanhang.1
