From 71c095088c069bdc5a22ee4f6e3f902606d4171a Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Wed, 29 Oct 2025 11:35:55 -0500 Subject: [PATCH] Fix: WASM target needs to depend on Cargo.* files The binary output depends on the configuration input, so maybe tell `make` about all of the inputs... --- makefile_web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile_web b/makefile_web index 73dddafb..a99be0cc 100644 --- a/makefile_web +++ b/makefile_web @@ -16,7 +16,7 @@ tarball: boids_web_root.tar boids_web_root.tar: out/boids.js out/boids_bg.wasm out/index.html tar -caf $@ $< -target/$(CARGO_TARGET)/$(CARGO_PROFILE)/another-boids-in-rust.wasm: $(SRCS) +target/$(CARGO_TARGET)/$(CARGO_PROFILE)/another-boids-in-rust.wasm: $(SRCS) Cargo.lock Cargo.toml cargo build --profile $(CARGO_PROFILE) --target $(CARGO_TARGET) out: