From a8cfea8b68b3734725faed366f9bea402596c20b Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 7 Mar 2024 16:14:52 +0000 Subject: Rebuild wasm-wasi-component when any of its dependencies change Have cargo run if for example src/wasm-wasi-component/src/lib.rs is changed, or any of the other files that should perhaps trigger a rebuild. Signed-off-by: Andrew Clayton --- auto/modules/wasm-wasi-component | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'auto') diff --git a/auto/modules/wasm-wasi-component b/auto/modules/wasm-wasi-component index 6c8258d7..7bcb8f72 100644 --- a/auto/modules/wasm-wasi-component +++ b/auto/modules/wasm-wasi-component @@ -91,6 +91,13 @@ else fi +NXT_WCM_DEPS=" \ + build/src/nxt_unit.o \ + src/wasm-wasi-component/build.rs \ + src/wasm-wasi-component/wrapper.h \ + src/wasm-wasi-component/src/lib.rs \ +" + cat << END >> $NXT_MAKEFILE .PHONY: ${NXT_WCM_MODULE} @@ -101,7 +108,7 @@ all: ${NXT_WCM_MODULE} ${NXT_WCM_MODULE}: ${NXT_WCM_MOD_CARGO} -${NXT_WCM_MOD_CARGO}: build/src/nxt_unit.o +${NXT_WCM_MOD_CARGO}: ${NXT_WCM_DEPS} $NXT_CARGO_CMD install: ${NXT_WCM_MODULE}-install -- cgit