From 39925b0c4e3a3363ab61bb2722eaa454cf7d6b58 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 28 Oct 2025 12:41:07 -0500 Subject: [PATCH] Rename WASM & JS output to match HTML The index.html file calls for a "boids.js", so I need the Makefile to produce one. I could change it, but that's off-topic for now so I won't. --- makefile_web | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/makefile_web b/makefile_web index 1384642a..4175e028 100644 --- a/makefile_web +++ b/makefile_web @@ -1,10 +1,10 @@ .PHONY: clean full-clean web tarball -web: out/boids-sim.js out/boids-sim.wasm out/index.html +web: out/boids.js out/boids.wasm out/index.html tarball: boids_web_root.tar -boids_web_root.tar: out/boids-sim.js out/boids-sim.wasm out/index.html +boids_web_root.tar: out/boids.js out/boids.wasm out/index.html tar -caf $@ $< target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm: @@ -15,8 +15,8 @@ out: # Both the JS and WASM files are generated by the wasm-bindgen call, so both # get to be on the target half of this recipe. -out/boids-sim.js out/boids-sim.wasm: out target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm - wasm-bindgen --no-typescript --target web --out-dir ./out --out-name boids-sim.wasm target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm +out/boids.js out/boids.wasm: out target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm + wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name boids.wasm target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm out/index.html: www/index.html cp -a $< $@