From d01ebee2fd08617117193cb655976efa992d3b2b Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 8 Apr 2022 17:34:26 +0800 Subject: [PATCH] fix proto files generation --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1d75cea01..01f276416 100644 --- a/Makefile +++ b/Makefile @@ -108,8 +108,6 @@ bbgo-slim-dnum-darwin-amd64: $(BIN_DIR) bbgo-slim-dnum-darwin: bbgo-slim-dnum-darwin-amd64 bbgo-slim-dnum-darwin-arm64 -clean: - rm -rf $(BUILD_DIR) $(DIST_DIR) $(FRONTEND_EXPORT_DIR) $(OSX_APP_CONTENTS_DIR): mkdir -p $@ @@ -242,7 +240,7 @@ PROTOS := \ GRPC_GO_DEPS := $(subst .proto,.pb.go,$(PROTOS)) %.pb.go: %.proto .FORCE - protoc --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=. --proto_path=. $< + protoc --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=paths=source_relative:. --proto_path=. $< grpc-go: $(GRPC_GO_DEPS) @@ -259,4 +257,7 @@ grpc-py: --grpc_python_out=$(PWD)/python/bbgo \ $(PWD)/pkg/pb/bbgo.proto +clean: + rm -rf $(BUILD_DIR) $(DIST_DIR) $(FRONTEND_EXPORT_DIR) $(GRPC_GO_DEPS) pkg/pb/*.pb.go + .PHONY: bbgo bbgo-slim-darwin bbgo-slim-darwin-amd64 bbgo-slim-darwin-arm64 bbgo-darwin version dist pack migrations static embed desktop grpc grpc-go grpc-py .FORCE