Used to store the protobuffer messages into files, so that they can be plotted as part of the dissertation
12 lines
570 B
Makefile
12 lines
570 B
Makefile
all: generated frontend/src/grpc
|
|
|
|
generated: protos/*.proto
|
|
mkdir -p generated
|
|
find protos/ -type f -name "*.proto" | xargs uv run python -m grpc_tools.protoc -Iprotos --python_out=generated --pyi_out=generated --grpc_python_out=generated --mypy_grpc_out=generated
|
|
|
|
find protos/ -type f -name "*.proto" | xargs uv run protol --create-package --in-place --python-out 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/
|