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...
This commit is contained in:
2025-10-29 11:35:55 -05:00
parent 7482130ac2
commit 71c095088c

View File

@@ -16,7 +16,7 @@ tarball: boids_web_root.tar
boids_web_root.tar: out/boids.js out/boids_bg.wasm out/index.html boids_web_root.tar: out/boids.js out/boids_bg.wasm out/index.html
tar -caf $@ $< 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) cargo build --profile $(CARGO_PROFILE) --target $(CARGO_TARGET)
out: out: