functions/examples: set proper GOBIN

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
Li Zhijian
2021-02-10 14:07:14 +08:00
parent abae65d8f1
commit ec0e42709a
6 changed files with 24 additions and 6 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 .)