Add tarball Makefile rule.

Change-Id: I0991346493d816d5a7bdbf523b4cff20f7b59eb6
This commit is contained in:
Julius Volz 2013-08-19 16:33:19 +02:00
parent 7db518d3a0
commit ab99bd0cbd
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,9 @@ build: config dependencies model preparation tools web
docker: build
docker build -t prometheus:$(REV) .
tarball: build
tar -C $(BUILD_PATH)/package -czf prometheus.tar.gz .
$(BUILD_PATH)/cache/$(GOPKG):
curl -o $@ http://go.googlecode.com/files/$(GOPKG)
@ -42,7 +45,7 @@ clean:
$(MAKE) -C tools clean
$(MAKE) -C web clean
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 '{}' ';'