From a87cb21e2f4aadedec7021eefa45523af51071ac Mon Sep 17 00:00:00 2001 From: Zenghui Shi Date: Wed, 30 Jan 2019 12:22:31 +0800 Subject: [PATCH] fix make error of ${BASE} dir not found --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3e7efadcf..dc9f737cb 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ GOPATH=$(CURDIR)/.gopath GOBIN=$(CURDIR)/bin BUILDDIR=$(CURDIR)/build BASE=$(GOPATH)/src/$(REPO_PATH) -GOFILES = $(shell cd $(BASE) && find . -name *.go | grep -vE "(vendor)|(_test.go)") +GOFILES = $(shell find . -name *.go | grep -vE "(\/vendor\/)|(_test.go)") PKGS = $(or $(PKG),$(shell cd $(BASE) && env GOPATH=$(GOPATH) $(GO) list ./... | grep -v "^$(PACKAGE)/vendor/")) TESTPKGS = $(shell env GOPATH=$(GOPATH) $(GO) list -f '{{ if or .TestGoFiles .XTestGoFiles }}{{ .ImportPath }}{{ end }}' $(PKGS))