Makefile: take GOPATH variable from go env

This commit is contained in:
Nikita Karmatskikh authored and Michal Jan Matczuk committed 2021-11-26 10:16:34 +01:00
1 parent beeab600f9
commit fcefd904ca
1 file changed
+4
+4
View File
@@ -12,6 +12,10 @@ ifndef GOTEST_CPU
GOTEST_CPU := 1 GOTEST_CPU := 1
endif endif
ifndef GOPATH
GOPATH := $(shell go env GOPATH)
endif
ifndef GOBIN ifndef GOBIN
GOBIN := $(GOPATH)/bin GOBIN := $(GOPATH)/bin
endif endif