Makefile: take GOPATH variable from go env

This commit is contained in:
Nikita Karmatskikh
2021-11-17 17:19:50 +03:00
committed by Michal Jan Matczuk
parent beeab600f9
commit fcefd904ca

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