From 7735d0da63d9f1ad2739a3ff75e460035ff37688 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 22 Apr 2016 18:16:00 +0200 Subject: [PATCH] Fix build for people without $GOPATH/bin in $PATH. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 74dc3d1b6..90c9c0daf 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -GO := GO15VENDOREXPERIMENT=1 go -pkgs = $(shell $(GO) list ./... | grep -v /vendor/) +GO := GO15VENDOREXPERIMENT=1 go +PROMU := $(GOPATH)/bin/promu +pkgs = $(shell $(GO) list ./... | grep -v /vendor/) PREFIX ?= $(shell pwd) BIN_DIR ?= $(shell pwd) @@ -48,11 +49,11 @@ vet: build: promu @echo ">> building binaries" - @promu build --prefix $(PREFIX) + @$(PROMU) build --prefix $(PREFIX) tarball: promu @echo ">> building release tarball" - @promu tarball --prefix $(PREFIX) $(BIN_DIR) + @$(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR) docker: @echo ">> building docker image"