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
endif
ifndef GOPATH
GOPATH := $(shell go env GOPATH)
endif
ifndef GOBIN
GOBIN := $(GOPATH)/bin
endif