diff options
Diffstat (limited to 'prom-exporter-chrony/Makefile')
-rw-r--r-- | prom-exporter-chrony/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/prom-exporter-chrony/Makefile b/prom-exporter-chrony/Makefile new file mode 100644 index 0000000..de7ad72 --- /dev/null +++ b/prom-exporter-chrony/Makefile @@ -0,0 +1,20 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/SuperQ/chrony_exporter/releases/download" + +.PHONY: clean + +all: i386/chrony_exporter amd64/chrony_exporter arm64/chrony_exporter + +%/chrony_exporter: chrony_exporter-$(VERSION).linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 + +chrony_exporter-$(VERSION).linux-%.tar.gz: + wget -nc --progress=dot:mega "$(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 -rf arm64 + rm -f chrony_exporter-$(VERSION).linux-*.tar.gz |