Fix: automatic var to use *all* deps, not first

The tarball target depends on all the dependencies, but the automatic
variable `$<` means "the first dependency". It should be "all deps", or
`$^`.
This commit is contained in:
2025-10-30 09:04:56 -05:00
parent 615bf79f30
commit 18ab509554

View File

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