mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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:
parent
8d737cc4bf
commit
69fc9c28bc
5
Makefile
5
Makefile
@ -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'
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user