From 18ab50955441dfb53e6ec692438f4a3ebf4a3d14 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 30 Oct 2025 09:04:56 -0500 Subject: [PATCH] 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 `$^`. --- makefile_web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile_web b/makefile_web index a99be0cc..83e77e63 100644 --- a/makefile_web +++ b/makefile_web @@ -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)