diff options
Diffstat (limited to 'prom-exporter-nftables/Makefile')
-rw-r--r-- | prom-exporter-nftables/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/prom-exporter-nftables/Makefile b/prom-exporter-nftables/Makefile new file mode 100644 index 0000000..35a70f7 --- /dev/null +++ b/prom-exporter-nftables/Makefile @@ -0,0 +1,18 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/metal-stack/nftables-exporter/releases/download" + +.PHONY: clean + +all: amd64/nftables-exporter + +amd64/nftables-exporter: nftables-exporter-v$(VERSION) + mkdir -p $(shell echo $@ | sed 's#/.*##') + cp $< $@ + +nftables-exporter-v$(VERSION): + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/nftables-exporter" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -f nftables-exporter-v$(VERSION) |