Add Makefile targets for generating Go and Python Protobuf code separately

This commit is contained in:
longpeng 2025-06-19 23:15:38 +08:00
parent b656433faa
commit 5c47aa3b4d

View File

@ -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: