From a6d0e2be2bd9c36345f222faf7a69ae925bc0bc6 Mon Sep 17 00:00:00 2001 From: "mingang.he" Date: Mon, 6 Aug 2018 15:52:05 +0800 Subject: [PATCH] Fix build graftcp-local `go get ./... ` depend the GOPATH, if the graftcp-local is not inside the GOPATH, it will fail with this message: go install: no install location for directory graftcp-local-path outside GOPATH For more details see: 'go help gopath' --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0b3c575..16c8f20 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ graftcp: main.o util.o string-set.o $(CC) $(CFLAGS) -c -o $@ $< graftcp-local/graftcp-local: graftcp-local/*.go - cd graftcp-local && go get ./... && go build + cd graftcp-local && go build install:: graftcp graftcp-local/graftcp-local $(INSTALL) $< $(BINDIR); \