Add Makefile targets for generating Go and Python Protobuf code separately
This commit is contained in:
parent
b656433faa
commit
5c47aa3b4d
9
Makefile
9
Makefile
@ -3,14 +3,19 @@
|
||||
|
||||
all: gen_go gen_py
|
||||
|
||||
# 只生成 Go 代码
|
||||
go: gen_go
|
||||
|
||||
# 只生成 Python 代码
|
||||
py: gen_py
|
||||
|
||||
|
||||
gen_go:
|
||||
@echo "Generating Go Protobuf code..."
|
||||
mkdir -p server/gen/pb
|
||||
protoc --proto_path=proto \
|
||||
--go_out=server/gen/pb \
|
||||
--go_opt=paths=source_relative \
|
||||
--go-temporal_out=server/gen/pb \
|
||||
--go-temporal_opt=paths=source_relative \
|
||||
proto/*.proto
|
||||
|
||||
gen_py:
|
||||
|
Loading…
Reference in New Issue
Block a user