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