#!/usr/bin/make -f

BUILDDIR := build
export DH_GOPKG := github.com/fffonion/tplink-plug-exporter

%:
	dh $@ --buildsystem=golang --with=golang --builddir=$(BUILDDIR)

override_dh_auto_install:
	mkdir -p debian/prometheus-tplink-plug-exporter/usr/bin
	install -m755 $(BUILDDIR)/bin/tplink-plug-exporter \
            debian/prometheus-tplink-plug-exporter/usr/bin/prometheus-tplink-plug-exporter