blob: 3bfa75b18cc9e4e302a7e88cd47a516c53f4da17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
VERSION := 0.19.0
GITHUB_BASEURL := "https://github.com/prometheus/blackbox_exporter/releases/download"
.PHONY: clean
all: i386/blackbox_exporter amd64/blackbox_exporter
%/blackbox_exporter: blackbox_exporter-$(VERSION).linux-%.tar.gz
mkdir -p $(shell echo $@ | sed 's#/.*##')
tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
blackbox_exporter-$(VERSION).linux-%.tar.gz:
wget -nc "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@"
sha256sum -c --ignore-missing sha256sums.txt
clean:
rm -rf i386
rm -rf amd64
rm -f blackbox_exporter-$(VERSION).linux-*.tar.gz
|