From 0c915b025e5f639d018cc37286a27606662bbff6 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 6 Nov 2025 10:22:44 -0600 Subject: [PATCH] HTML-installing targets remove the other one This is actually a build configuration task, but I don't have a tool to do that (no `./configure.sh` to run!). To work around this, I'll just have each of the html-installing targets install their own and remove the other. That way back-to-back builds don't accidentally contaminate each other. The WASM and JS files are identical, so they don't need this treatment. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e3dedad1..2383776b 100644 --- a/Makefile +++ b/Makefile @@ -38,10 +38,12 @@ out/boids.js out/boids_bg.wasm &: target/$(CARGO_TARGET)/$(CARGO_PROFILE)/anothe # Copies the index page to the output out/index.html: www/index.html cp -a $< $@ + rm -f out/boids.html # Like `out/index.html`, but renames it for use in a larger site. out/boids.html: www/index.html cp -a $< $@ + rm -f out/index.html # Clean the web build, but not the Cargo cache. Cargo handles it's own caching # and I don't want to obliterate it all the time.