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