11 lines
592 B
Makefile
11 lines
592 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
|
|
mkdir -p frontend/src/grpc
|
|
cd frontend && find ../protos/ -name "*.proto" | xargs npx protoc --ts_out=src/grpc -I../protos/
|