From 034e8af90b38c6b70681348c9bf1e9496a876083 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 30 Dec 2025 14:10:57 -0500 Subject: [PATCH] build: mark .wasm files as intermediate for cleanup after building .ndp Signed-off-by: Deluan --- plugins/examples/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/examples/Makefile b/plugins/examples/Makefile index 224ec11a8..983d59ddc 100644 --- a/plugins/examples/Makefile +++ b/plugins/examples/Makefile @@ -52,6 +52,9 @@ clean: rm -f $(PLUGINS:%=%.wasm) $(PYTHON_PLUGINS:%=%.wasm) $(RUST_PLUGINS:%=%.wasm) @$(foreach p,$(RUST_PLUGINS),(cd $(p) && cargo clean 2>/dev/null) || true;) +# Mark .wasm files as intermediate so Make deletes them after building .ndp +.INTERMEDIATE: $(PLUGINS:%=%.wasm) $(PYTHON_PLUGINS:%=%.wasm) $(RUST_PLUGINS:%=%.wasm) + # Build .ndp package from .wasm and manifest.json # Go plugins %.ndp: %.wasm %/manifest.json @@ -59,6 +62,7 @@ clean: @cp $< plugin.wasm zip -j $@ $*/manifest.json plugin.wasm @rm -f plugin.wasm + @mv $< $<.tmp && mv $<.tmp $< # Touch wasm to ensure it's older than ndp # Use secondary expansion to properly track all Go source files .SECONDEXPANSION: