10 lines
577 B
Makefile
10 lines
577 B
Makefile
all: server/generated frontend/src/grpc
|
|
|
|
server/generated: protos/*.proto
|
|
mkdir -p server/generated
|
|
find protos/ -type f -name "*.proto" | xargs uv run python -m grpc_tools.protoc -Iprotos --python_out=server/generated --pyi_out=server/generated --grpc_python_out=server/generated
|
|
find protos/ -type f -name "*.proto" | xargs uv run protol --create-package --in-place --python-out server/generated/ protoc --proto-path=protos/
|
|
|
|
frontend/src/grpc: protos/*.proto
|
|
find protos/ -name "*.proto" | xargs npm exec --prefix frontend/ protoc --ts_out frontend/src/grpc -I protos/
|