From ab99bd0cbd08eecc193ef1d53ae0c26a9ce223ad Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 19 Aug 2013 16:33:19 +0200 Subject: [PATCH] Add tarball Makefile rule. Change-Id: I0991346493d816d5a7bdbf523b4cff20f7b59eb6 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aa595bf967..21777855dc 100644 --- a/Makefile +++ b/Makefile @@ -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 '{}' ';'