mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
746b5f3691
1. It depends on both request and reply schemas. 2. Wildcards aren't natively expanded in make, so use $(wildcard). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
632 B
Makefile
17 lines
632 B
Makefile
cln-rpc-wrongdir:
|
|
$(MAKE) -C .. cln-rpc-all
|
|
|
|
CLN_RPC_EXAMPLES := target/debug/examples/cln-rpc-getinfo
|
|
CLN_RPC_GENALL = cln-rpc/src/model.rs
|
|
CLN_RPC_SOURCES = $(shell find cln-rpc -name *.rs) ${CLN_RPC_GENALL}
|
|
JSON_SCHEMAS = $(wildcard doc/schemas/*.request.json doc/schemas/*.schema.json)
|
|
DEFAULT_TARGETS += $(CLN_RPC_EXAMPLES) $(CLN_RPC_GENALL)
|
|
|
|
$(CLN_RPC_GENALL): $(JSON_SCHEMAS)
|
|
PYTHONPATH=contrib/msggen python3 contrib/msggen/msggen/__main__.py
|
|
|
|
target/debug/examples/cln-rpc-getinfo: $(shell find cln-rpc -name *.rs)
|
|
cargo build ${CARGO_OPTS} --example cln-rpc-getinfo
|
|
|
|
cln-rpc-all: ${CLN_RPC_GEN_ALL} ${CLN_RPC_EXAMPLES}
|