From 6e980c45ebb4950cdadd15166177d4d4f081d29c Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 20 Feb 2024 18:23:32 +0100 Subject: [PATCH] make: The protobuf files are a grouped target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d793df1dd48..bd1a3f723448 100644 --- a/Makefile +++ b/Makefile @@ -386,7 +386,7 @@ GRPC_GEN = \ ALL_TEST_GEN += $(GRPC_GEN) -$(GRPC_GEN)&: cln-grpc/proto/node.proto cln-grpc/proto/primitives.proto +$(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=$(GRPC_PATH)/ --grpc_python_out=$(GRPC_PATH)/ --experimental_allow_proto3_optional $(PYTHON) -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/primitives.proto --python_out=$(GRPC_PATH)/ --experimental_allow_proto3_optional find $(GRPC_DIR)/ -type f -name "*.py" -print0 | xargs -0 sed -i'.bak' -e 's/^import \(.*\)_pb2 as .*__pb2/from pyln.grpc import \1_pb2 as \1__pb2/g'