From c8c64e4d229c0e84e3502a01c03a3868963c153f Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 6 Nov 2025 10:26:35 -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 fc651b0..e701f5a 100644 --- a/Makefile +++ b/Makefile @@ -3,15 +3,15 @@ ## Do not use it if that isn't your goal! ## -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 := tiny +SRC_DIR = ./src +SRCS := $(wildcard $(SRC_DIR)/**) + .PHONY: clean full-clean web tarball web: out/asteroids.js out/asteroids_bg.wasm out/index.html