#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

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

override_dh_installman:
	TZ=UTC LC_ALL=C help2man -S 'DCSO' --no-discard-stderr \
	  -n 'show ethtool information in InfluxDB line protocol format' \
	  -N --version-string="$(DEB_VERSION_UPSTREAM)" \
	  $(CURDIR)/debian/ethflux/usr/bin/ethflux > debian/ethflux.1
	dh_installman

override_dh_auto_clean:
	rm -f debian/ethflux.1
	dh_auto_clean

override_dh_auto_install:
	dh_auto_install -- --no-source
