blob: 35a70f777e23c8961238fce06a0badec8e48eb07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
|