2022-01-14 16:11:28 +01:00
|
|
|
cln-rpc-wrongdir:
|
|
|
|
$(MAKE) -C .. cln-rpc-all
|
|
|
|
|
2022-12-20 10:11:59 +01:00
|
|
|
CLN_RPC_EXAMPLES := target/${RUST_PROFILE}/examples/cln-rpc-getinfo
|
2022-01-14 16:11:28 +01:00
|
|
|
CLN_RPC_GENALL = cln-rpc/src/model.rs
|
|
|
|
CLN_RPC_SOURCES = $(shell find cln-rpc -name *.rs) ${CLN_RPC_GENALL}
|
2022-09-12 23:13:20 +02:00
|
|
|
JSON_SCHEMAS = $(wildcard doc/schemas/*.request.json doc/schemas/*.schema.json)
|
2022-01-14 16:11:28 +01:00
|
|
|
DEFAULT_TARGETS += $(CLN_RPC_EXAMPLES) $(CLN_RPC_GENALL)
|
|
|
|
|
2022-09-12 23:13:20 +02:00
|
|
|
$(CLN_RPC_GENALL): $(JSON_SCHEMAS)
|
2022-01-14 16:11:28 +01:00
|
|
|
PYTHONPATH=contrib/msggen python3 contrib/msggen/msggen/__main__.py
|
|
|
|
|
2022-12-21 12:26:46 +01:00
|
|
|
target/${RUST_PROFILE}/examples/cln-rpc-getinfo: $(shell find cln-rpc -name *.rs)
|
2022-02-25 12:06:13 +01:00
|
|
|
cargo build ${CARGO_OPTS} --example cln-rpc-getinfo
|
2022-01-14 16:11:28 +01:00
|
|
|
|
2022-12-21 12:26:46 +01:00
|
|
|
target/${RUST_PROFILE}/examples/cln-plugin-startup: $(shell find cln-rpc -name *.rs)
|
|
|
|
cargo build ${CARGO_OPTS} --example cln-plugin-startup
|
|
|
|
|
|
|
|
|
2022-01-14 16:11:28 +01:00
|
|
|
cln-rpc-all: ${CLN_RPC_GEN_ALL} ${CLN_RPC_EXAMPLES}
|