From aaddce255abe7ebd65e02db8eeea2ea6e426e3fe Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 13 Feb 2024 13:46:43 -0300 Subject: [PATCH] Ensure `make` looks at all dependent files --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 3161a89..44246a6 100644 --- a/makefile +++ b/makefile @@ -2,10 +2,12 @@ default: bin/rewild.hl -bin/rewild.hl: **/*.hx +SOURCES := $(shell find . -name \*.hx -print) + +bin/rewild.hl: $(SOURCES) haxe compile-hl.hxml -bin/rewild.js: **/*.hx +bin/rewild.js: $(SOURCES) haxe compile-js.hxml clean: