| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | BUILDDIR := build |
| 4 | export DH_GOPKG := github.com/fffonion/tplink-plug-exporter |
| 5 | |
| 6 | %: |
| 7 | dh $@ --buildsystem=golang --with=golang --builddir=$(BUILDDIR) |
| 8 | |
| 9 | override_dh_auto_install: |
| 10 | mkdir -p debian/prometheus-tplink-plug-exporter/usr/bin |
| 11 | install -m755 $(BUILDDIR)/bin/tplink-plug-exporter \ |
| 12 | debian/prometheus-tplink-plug-exporter/usr/bin/prometheus-tplink-plug-exporter |