blob: 59c28a4e2c830ea7c6496056bbf89c5bd4365c2d (
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/QubitProducts/exporter_exporter/releases/download"
.PHONY: clean
all: amd64/exporter_exporter
%/exporter_exporter: exporter_exporter-$(VERSION).linux-%.tar.gz
mkdir -p $(shell echo $@ | sed 's#/.*##')
tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
exporter_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 amd64
rm -f exporter_exporter-$(VERSION).linux-*.tar.gz
|