From 166ee4bac8a16301d8f336e7293b81863725bea6 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Nov 2021 13:35:44 +1030 Subject: [PATCH] plugins/Makefile: improve header dependencies. Not all plugins depended on their headers. Keep it simple: all plugins depend on all plugin headers. Signed-off-by: Rusty Russell --- plugins/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Makefile b/plugins/Makefile index 79bbadea3..3562243cd 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -141,8 +141,10 @@ PLUGIN_COMMON_OBJS := \ wire/tlvstream.o \ wire/towire.o +# Make all plugins depend on all plugin headers, for simplicity. +$(PLUGIN_ALL_OBJS): $(PLUGIN_ALL_HEADER) + plugins/pay: bitcoin/chainparams.o $(PLUGIN_PAY_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_PAY_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) common/gossmap.o common/fp16.o common/route.o common/dijkstra.o common/bolt12.o common/bolt12_merkle.o wire/bolt12$(EXP)_wiregen.o bitcoin/block.o -$(PLUGIN_PAY_OBJS): $(PLUGIN_PAY_LIB_HEADER) plugins/autoclean: bitcoin/chainparams.o $(PLUGIN_AUTOCLEAN_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) @@ -165,8 +167,6 @@ plugins/fetchinvoice: bitcoin/chainparams.o $(PLUGIN_FETCHINVOICE_OBJS) $(PLUGIN plugins/funder: bitcoin/chainparams.o bitcoin/psbt.o common/psbt_open.o $(PLUGIN_FUNDER_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS) -$(PLUGIN_ALL_OBJS): $(PLUGIN_LIB_HEADER) - # Generated from PLUGINS definition in plugins/Makefile ALL_C_HEADERS += plugins/list_of_builtin_plugins_gen.h plugins/list_of_builtin_plugins_gen.h: plugins/Makefile Makefile