mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add tarball Makefile rule.
Change-Id: I0991346493d816d5a7bdbf523b4cff20f7b59eb6
This commit is contained in:
parent
7db518d3a0
commit
ab99bd0cbd
5
Makefile
5
Makefile
|
@ -34,6 +34,9 @@ build: config dependencies model preparation tools web
|
||||||
docker: build
|
docker: build
|
||||||
docker build -t prometheus:$(REV) .
|
docker build -t prometheus:$(REV) .
|
||||||
|
|
||||||
|
tarball: build
|
||||||
|
tar -C $(BUILD_PATH)/package -czf prometheus.tar.gz .
|
||||||
|
|
||||||
$(BUILD_PATH)/cache/$(GOPKG):
|
$(BUILD_PATH)/cache/$(GOPKG):
|
||||||
curl -o $@ http://go.googlecode.com/files/$(GOPKG)
|
curl -o $@ http://go.googlecode.com/files/$(GOPKG)
|
||||||
|
|
||||||
|
@ -42,7 +45,7 @@ clean:
|
||||||
$(MAKE) -C tools clean
|
$(MAKE) -C tools clean
|
||||||
$(MAKE) -C web clean
|
$(MAKE) -C web clean
|
||||||
rm -rf $(TEST_ARTIFACTS)
|
rm -rf $(TEST_ARTIFACTS)
|
||||||
-rm prometheus-$(REV).tar.gz
|
-rm prometheus.tar.gz
|
||||||
-find . -type f -iname '*~' -exec rm '{}' ';'
|
-find . -type f -iname '*~' -exec rm '{}' ';'
|
||||||
-find . -type f -iname '*#' -exec rm '{}' ';'
|
-find . -type f -iname '*#' -exec rm '{}' ';'
|
||||||
-find . -type f -iname '.#*' -exec rm '{}' ';'
|
-find . -type f -iname '.#*' -exec rm '{}' ';'
|
||||||
|
|
Loading…
Reference in a new issue