add protobuf install setting for MacOS
@@ -32,6 +32,11 @@ PROTOC_VERSION="3.6.1"
ifeq ($(GOOS),linux)
PROTOC="protoc-$(PROTOC_VERSION)-linux-x86_64"
PROTOC_EXEC="$(PROTOC)/bin/protoc"
+GOBIN="$(GOPATH)/bin"
+else
+ ifeq ($(GOOS),darwin)
+PROTOC="protoc-$(PROTOC_VERSION)-osx-x86_64"
+PROTOC_EXEC="$(PROTOC)/bin/protoc"
GOBIN="$(GOPATH)/bin"
else
ifeq ($(GOOS),windows)
@@ -40,6 +45,7 @@ PROTOC_EXEC="$(PROTOC)\bin\protoc.exe"
GOBIN="$(GOPATH)\bin"
endif
endif
+endif
depend:
@go get -v $(DEPEND)
@go install github.com/hashicorp/go-getter/cmd/go-getter && \
