From 2c5f17d4e7e6aee1685151529bfc8b833b248d7c Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Thu, 29 Dec 2016 18:52:36 +0100 Subject: Fix Makefile by using first element of GOPATH If GOPATH includes multiple paths, running `make promu` would fail. This fixes it by always using the first path. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a02a842..acf2b5c 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -GO ?= GO15VENDOREXPERIMENT=1 go -PROMU ?= $(GOPATH)/bin/promu -pkgs = $(shell $(GO) list ./... | grep -v /vendor/) +GO ?= GO15VENDOREXPERIMENT=1 go +GOPATH := $(firstword $(subst :, ,$(GOPATH))) +PROMU ?= $(GOPATH)/bin/promu +pkgs = $(shell $(GO) list ./... | grep -v /vendor/) PREFIX ?= $(shell pwd) BIN_DIR ?= $(shell pwd) -- cgit v1.2.3