diff --git a/cln-rpc/Makefile b/cln-rpc/Makefile index e732a08d2ffd..168104aea2c2 100644 --- a/cln-rpc/Makefile +++ b/cln-rpc/Makefile @@ -8,13 +8,13 @@ DEFAULT_TARGETS += $(CLN_RPC_EXAMPLES) $(CLN_RPC_GENALL) MSGGEN_GENALL += $(CLN_RPC_GENALL) -target/${RUST_PROFILE}/examples/cln-rpc-getinfo: $(shell find cln-rpc -name *.rs) +target/${RUST_PROFILE}/examples/cln-rpc-getinfo: ${CLN_RPC_SOURCES} cln-rpc/examples/getinfo.rs cargo build ${CARGO_OPTS} --example cln-rpc-getinfo -target/${RUST_PROFILE}/examples/cln-plugin-startup: plugins/examples/cln-plugin-startup.rs +target/${RUST_PROFILE}/examples/cln-plugin-startup: ${CLN_RPC_SOURCES} plugins/examples/cln-plugin-startup.rs cargo build ${CARGO_OPTS} --example cln-plugin-startup -target/${RUST_PROFILE}/examples/cln-plugin-reentrant: plugins/examples/cln-plugin-reentrant.rs +target/${RUST_PROFILE}/examples/cln-plugin-reentrant: ${CLN_RPC_SOURCES} plugins/examples/cln-plugin-reentrant.rs cargo build ${CARGO_OPTS} --example cln-plugin-reentrant