mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Merge pull request #1575 from prometheus/fix-promu-path
Fix build for people without $GOPATH/bin in $PATH.
This commit is contained in:
commit
bf0897bea5
5
Makefile
5
Makefile
|
@ -12,6 +12,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
GO := GO15VENDOREXPERIMENT=1 go
|
GO := GO15VENDOREXPERIMENT=1 go
|
||||||
|
PROMU := $(GOPATH)/bin/promu
|
||||||
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
|
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
PREFIX ?= $(shell pwd)
|
PREFIX ?= $(shell pwd)
|
||||||
|
@ -48,11 +49,11 @@ vet:
|
||||||
|
|
||||||
build: promu
|
build: promu
|
||||||
@echo ">> building binaries"
|
@echo ">> building binaries"
|
||||||
@promu build --prefix $(PREFIX)
|
@$(PROMU) build --prefix $(PREFIX)
|
||||||
|
|
||||||
tarball: promu
|
tarball: promu
|
||||||
@echo ">> building release tarball"
|
@echo ">> building release tarball"
|
||||||
@promu tarball --prefix $(PREFIX) $(BIN_DIR)
|
@$(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR)
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
@echo ">> building docker image"
|
@echo ">> building docker image"
|
||||||
|
|
Loading…
Reference in a new issue