Place Makefile 'configurables' up top

Variables that a package consumer might want to adjust should be placed
at the top of the file so they are immediately visible. Any constants
shall live below those (just the SRC folder, really).
This commit is contained in:
2025-11-06 09:54:30 -06:00
parent e65deec5ea
commit e7e5337f22

View File

@@ -1,15 +1,15 @@
# This script produces a web build. If you aren't trying to do that, it is # This script produces a web build. If you aren't trying to do that, it is
# entirely useless to you. # entirely useless to you.
SRC_DIR = ./src
SRCS := $(wildcard $(SRC_DIR)/**)
# Patch these to select a different build profile or target # Patch these to select a different build profile or target
# The target shouldn't change any time soon. WASM64, I guess. Other targets # The target shouldn't change any time soon. WASM64, I guess. Other targets
# aren't aimed at the web, so you shouldn't be using this makefile. # aren't aimed at the web, so you shouldn't be using this makefile.
CARGO_TARGET := wasm32-unknown-unknown CARGO_TARGET := wasm32-unknown-unknown
CARGO_PROFILE := wasm-release CARGO_PROFILE := wasm-release
SRC_DIR = ./src
SRCS := $(wildcard $(SRC_DIR)/**)
.PHONY: clean full-clean web tarball .PHONY: clean full-clean web tarball
web: out/boids.js out/boids_bg.wasm out/index.html web: out/boids.js out/boids_bg.wasm out/index.html