diff --git a/Makefile b/Makefile index 67b6fd3d8..778b53281 100644 --- a/Makefile +++ b/Makefile @@ -359,6 +359,17 @@ endif ifneq ($(RUST),0) include cln-rpc/Makefile include cln-grpc/Makefile + +GRPC_GEN = tests/node_pb2.py \ + tests/node_pb2_grpc.py \ + tests/primitives_pb2.py + +ALL_TEST_GEN += $(GRPC_GEN) + +$(GRPC_GEN): cln-grpc/proto/node.proto cln-grpc/proto/primitives.proto + python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/node.proto --python_out=tests/ --grpc_python_out=tests/ --experimental_allow_proto3_optional + python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/primitives.proto --python_out=tests/ --grpc_python_out=tests/ --experimental_allow_proto3_optional + endif # We make pretty much everything depend on these.