Merge pull request #3558 from zhijianli88/GOBIN

Makefile: check and use GOBIN environment variable first
This commit is contained in:
Kubernetes Prow Robot
2021-03-31 10:01:01 -07:00
committed by GitHub
15 changed files with 60 additions and 20 deletions

View File

@@ -3,7 +3,10 @@
.PHONY: generate license fix vet fmt test build tidy image
GOBIN := $(shell go env GOPATH)/bin
GOBIN = $(shell go env GOBIN)
ifeq ($(GOBIN),)
GOBIN = $(shell go env GOPATH)/bin
endif
build:
(cd image && go build -v -o $(GOBIN)/config-function .)