Skip to content

Commit

Permalink
cln-rpc: Update the Makefile to always rebuild each example when the …
Browse files Browse the repository at this point in the history
…example files themselves are changed

and to rebuild all the examples when the dependencies are changed (`CLN_RPC_SOURCES`).
  • Loading branch information
chrisguida committed Oct 26, 2023
1 parent a3215dd commit 2b8d3e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cln-rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2b8d3e3

Please sign in to comment.