mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 09:15:15 +00:00
fix proto files generation
This commit is contained in:
parent
0885b1635a
commit
d01ebee2fd
7
Makefile
7
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user