Browse Source

Add tarball Makefile rule.

Change-Id: I0991346493d816d5a7bdbf523b4cff20f7b59eb6
changes/04/4/1
Julius Volz 11 years ago
parent
commit
ab99bd0cbd
  1. 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…
Cancel
Save