diff --git a/Makefile b/Makefile index 9c624b7f5..38959a1cf 100644 --- a/Makefile +++ b/Makefile @@ -369,17 +369,15 @@ include doc/Makefile include contrib/msggen/Makefile include devtools/Makefile include tools/Makefile +ifneq ($(RUST),0) +include cln-rpc/Makefile +endif include plugins/Makefile include tests/plugins/Makefile ifneq ($(FUZZING),0) include tests/fuzz/Makefile endif -ifneq ($(RUST),0) - include cln-rpc/Makefile - include plugins/rest-plugin/Makefile -endif -include cln-grpc/Makefile ifneq ($V,1) MSGGEN_ARGS := -s diff --git a/plugins/Makefile b/plugins/Makefile index 31e069276..f7e35e613 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -307,6 +307,7 @@ target/${RUST_PROFILE}/clnrest: ${CLN_REST_PLUGIN_SRC} cargo build ${CARGO_OPTS} --bin clnrest ifneq ($(RUST),0) +include plugins/rest-plugin/Makefile DEFAULT_TARGETS += $(CLN_PLUGIN_EXAMPLES) plugins/cln-grpc plugins/clnrest endif