From e7e5337f221e237d83495e72e9e1a35d12bc796d Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 6 Nov 2025 09:54:30 -0600 Subject: [PATCH] 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). --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9439b061..3aafe6e1 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ # This script produces a web build. If you aren't trying to do that, it is # entirely useless to you. -SRC_DIR = ./src -SRCS := $(wildcard $(SRC_DIR)/**) - # Patch these to select a different build profile or target # 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. CARGO_TARGET := wasm32-unknown-unknown CARGO_PROFILE := wasm-release +SRC_DIR = ./src +SRCS := $(wildcard $(SRC_DIR)/**) + .PHONY: clean full-clean web tarball web: out/boids.js out/boids_bg.wasm out/index.html