@@ -140,17 +140,17 @@ $(shell test -d plugins/wss-proxy && $(RM) -r plugins/wss-proxy || true)
140
140
ifneq ($(RUST ) ,0)
141
141
# Builtin plugins must be in this plugins dir to work when we're executed
142
142
# *without* make install.
143
- plugins/cln-grpc : target/${RUST_PROFILE} /cln-grpc
143
+ plugins/cln-grpc : $( RUST_TARGET_DIR ) /cln-grpc
144
144
@cp $< $@
145
- plugins/clnrest : target/${RUST_PROFILE} /clnrest
145
+ plugins/clnrest : $( RUST_TARGET_DIR ) /clnrest
146
146
@cp $< $@
147
- plugins/cln-lsps-client : target/${RUST_PROFILE} /cln-lsps-client
147
+ plugins/cln-lsps-client : $( RUST_TARGET_DIR ) /cln-lsps-client
148
148
@cp $< $@
149
- plugins/cln-lsps-service : target/${RUST_PROFILE} /cln-lsps-service
149
+ plugins/cln-lsps-service : $( RUST_TARGET_DIR ) /cln-lsps-service
150
150
@cp $< $@
151
- plugins/wss-proxy : target/${RUST_PROFILE} /wss-proxy
151
+ plugins/wss-proxy : $( RUST_TARGET_DIR ) /wss-proxy
152
152
@cp $< $@
153
- plugins/cln-bip353 : target/${RUST_PROFILE} /cln-bip353
153
+ plugins/cln-bip353 : $( RUST_TARGET_DIR ) /cln-bip353
154
154
@cp $< $@
155
155
156
156
PLUGINS += plugins/cln-grpc plugins/clnrest plugins/cln-lsps-client plugins/cln-lsps-service plugins/wss-proxy plugins/cln-bip353
@@ -293,14 +293,14 @@ PLUGIN_BASES := $(PLUGINS:plugins/%=%) $(PY_PLUGINS:plugins/%=%)
293
293
plugins/list_of_builtin_plugins_gen.h : plugins/Makefile Makefile config.vars
294
294
@$(call VERBOSE,GEN $@ ,echo "static const char * list_of_builtin_plugins[] = { $(PLUGIN_BASES:%=\"%\", ) NULL };" > $@ )
295
295
296
- target/${RUST_PROFILE} /examples/cln-subscribe-wildcard : ${CLN_PLUGIN_SRC} plugins/examples/cln-subscribe-wildcard.rs
296
+ $( RUST_TARGET_DIR ) /examples/cln-subscribe-wildcard : ${CLN_PLUGIN_SRC} plugins/examples/cln-subscribe-wildcard.rs
297
297
cargo build ${CARGO_OPTS} --example cln-subscribe-wildcard
298
298
299
299
CLN_PLUGIN_EXAMPLES := \
300
- target/${RUST_PROFILE} /examples/cln-plugin-startup \
301
- target/${RUST_PROFILE} /examples/cln-plugin-reentrant \
302
- target/${RUST_PROFILE} /examples/cln-rpc-getinfo \
303
- target/${RUST_PROFILE} /examples/cln-subscribe-wildcard
300
+ $( RUST_TARGET_DIR ) /examples/cln-plugin-startup \
301
+ $( RUST_TARGET_DIR ) /examples/cln-plugin-reentrant \
302
+ $( RUST_TARGET_DIR ) /examples/cln-rpc-getinfo \
303
+ $( RUST_TARGET_DIR ) /examples/cln-subscribe-wildcard
304
304
305
305
CLN_PLUGIN_SRC = $(shell find plugins/src -name "* .rs")
306
306
CLN_GRPC_PLUGIN_SRC = $(shell find plugins/grpc-plugin/src -name "* .rs")
@@ -309,17 +309,17 @@ CLN_LSPS_PLUGIN_SRC = $(shell find plugins/lsps-plugin/src -name "*.rs")
309
309
CLN_WSS_PROXY_PLUGIN_SRC = $(shell find plugins/wss-proxy-plugin/src -name "* .rs")
310
310
CLN_BIP353_PLUGIN_SRC = $(shell find plugins/bip353-plugin/src -name "* .rs")
311
311
312
- target/${RUST_PROFILE} /cln-grpc : ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL ) $(MSGGEN_GEN_ALL )
312
+ $( RUST_TARGET_DIR ) /cln-grpc : ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL ) $(MSGGEN_GEN_ALL )
313
313
cargo build ${CARGO_OPTS} --bin cln-grpc
314
- target/${RUST_PROFILE} /clnrest : ${CLN_REST_PLUGIN_SRC}
314
+ $( RUST_TARGET_DIR ) /clnrest : ${CLN_REST_PLUGIN_SRC}
315
315
cargo build ${CARGO_OPTS} --bin clnrest
316
- target/${RUST_PROFILE} /cln-lsps-client : ${CLN_LSPS_PLUGIN_SRC}
316
+ $( RUST_TARGET_DIR ) /cln-lsps-client : ${CLN_LSPS_PLUGIN_SRC}
317
317
cargo build ${CARGO_OPTS} --bin cln-lsps-client
318
- target/${RUST_PROFILE} /cln-lsps-service : ${CLN_LSPS_PLUGIN_SRC}
318
+ $( RUST_TARGET_DIR ) /cln-lsps-service : ${CLN_LSPS_PLUGIN_SRC}
319
319
cargo build ${CARGO_OPTS} --bin cln-lsps-service
320
- target/${RUST_PROFILE} /wss-proxy : ${CLN_WSS_PROXY_PLUGIN_SRC}
320
+ $( RUST_TARGET_DIR ) /wss-proxy : ${CLN_WSS_PROXY_PLUGIN_SRC}
321
321
cargo build ${CARGO_OPTS} --bin wss-proxy
322
- target/${RUST_PROFILE} /cln-bip353 : ${CLN_BIP353_PLUGIN_SRC}
322
+ $( RUST_TARGET_DIR ) /cln-bip353 : ${CLN_BIP353_PLUGIN_SRC}
323
323
cargo build ${CARGO_OPTS} --bin cln-bip353
324
324
325
325
ifneq ($(RUST ) ,0)
0 commit comments