From e4ed15dc33243444a74f6cbaa3aedb5202083b90 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 6 Apr 2022 14:16:14 +0930 Subject: [PATCH] plugins: fix cln-grpc to work as a builtin when we're run in-tree. Signed-off-by: Rusty Russell --- plugins/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/Makefile b/plugins/Makefile index e3e2f7523..27983596d 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -169,8 +169,13 @@ 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) ifneq ($(RUST),0) -DEFAULT_TARGETS += $(CLN_PLUGIN_EXAMPLES) target/${RUST_PROFILE}/cln-grpc -PLUGINS += target/${RUST_PROFILE}/cln-grpc +# Builtin plugins must be in this plugins dir to work when we're executed +# *without* make install. +plugins/cln-grpc: target/${RUST_PROFILE}/cln-grpc + @cp $< $@ + +DEFAULT_TARGETS += $(CLN_PLUGIN_EXAMPLES) plugins/cln-grpc +PLUGINS += plugins/cln-grpc endif # Generated from PLUGINS definition in plugins/Makefile