You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
437 B

.PHONY: clean
VERSION:=2.5.0
all: prometheus
prometheus: prometheus-$(VERSION).linux-amd64.tar.gz
tar --strip-components 1 -xvf $< -- prometheus-$(VERSION).linux-amd64/$@ prometheus-$(VERSION).linux-amd64/$@.yml
prometheus-$(VERSION).linux-amd64.tar.gz:
curl -Lsf 'https://github.com/prometheus/prometheus/releases/download/v$(VERSION)/prometheus-$(VERSION).linux-amd64.tar.gz' > $@
clean:
rm -f prometheus "prometheus-*.tar.gz"