Makefile: correctly erase generated contrib/pyln-testing/pyln/testing/ in distclean, and rebuild by default.

And add contrib/pyln-testing/pyln/testing/grpc2py.py since we didn't previously know
how to build it!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-06-15 11:35:21 +09:30
parent 8d737cc4bf
commit 69fc9c28bc
2 changed files with 4 additions and 3 deletions

View File

@ -274,7 +274,7 @@ ifeq ($(HAVE_POSTGRES),1)
LDLIBS += $(POSTGRES_LDLIBS)
endif
default: show-flags all-programs all-test-programs doc-all default-targets
default: show-flags all-programs all-test-programs doc-all default-targets $(PYTHON_GENERATED)
ifneq ($(SUPPRESS_GENERATION),1)
FORCE = FORCE
@ -419,7 +419,7 @@ mkdocs.yml: $(MANPAGES:=.md)
# Don't delete these intermediaries.
.PRECIOUS: $(ALL_GEN_HEADERS) $(ALL_GEN_SOURCES)
.PRECIOUS: $(ALL_GEN_HEADERS) $(ALL_GEN_SOURCES) $(PYTHON_GENERATED)
# Every single object file.
ALL_OBJS := $(ALL_C_SOURCES:.c=.o)
@ -689,6 +689,7 @@ default-targets: $(DEFAULT_TARGETS)
distclean: clean
$(RM) ccan/config.h config.vars
$(RM) $(PYTHON_GENERATED)
maintainer-clean: distclean
@echo 'This command is intended for maintainers to use; it'

View File

@ -8,6 +8,6 @@ CLN_GRPC_GENALL = cln-grpc/proto/node.proto \
DEFAULT_TARGETS += $(CLN_GRPC_EXAMPLES) $(CLN_GRPC_GENALL)
MSGGEN_GENALL += $(CLN_GRPC_GENALL)
MSGGEN_GENALL += $(CLN_GRPC_GENALL) contrib/pyln-testing/pyln/testing/grpc2py.py
cln-grpc-all: ${CLN_GRPC_GENALL} ${CLN_GRPC_EXAMPLES}