make: add promtool to build and tarball targets.

This commit is contained in:
Fabian Reinartz 2015-06-18 12:21:53 +02:00
parent 890c1a7e74
commit d27e45cc74
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ binary: build
build: tools $(GOPATH) build: tools $(GOPATH)
$(GO) build -o prometheus $(BUILDFLAGS) github.com/prometheus/prometheus/cmd/prometheus $(GO) build -o prometheus $(BUILDFLAGS) github.com/prometheus/prometheus/cmd/prometheus
$(GO) build -o promtool $(BUILDFLAGS) github.com/prometheus/prometheus/cmd/promtool
docker: build docker: build
docker build -t prometheus:$(REV) . docker build -t prometheus:$(REV) .
@ -35,7 +36,7 @@ docker: build
tarball: $(ARCHIVE) tarball: $(ARCHIVE)
$(ARCHIVE): build $(ARCHIVE): build
tar -czf $(ARCHIVE) prometheus tools/rule_checker/rule_checker consoles console_libraries tar -czf $(ARCHIVE) prometheus promtool tools/rule_checker/rule_checker consoles console_libraries
release: REMOTE ?= $(error "can't upload, REMOTE not set") release: REMOTE ?= $(error "can't upload, REMOTE not set")
release: REMOTE_DIR ?= $(error "can't upload, REMOTE_DIR not set") release: REMOTE_DIR ?= $(error "can't upload, REMOTE_DIR not set")