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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user