aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-05 15:34:21 +0100
committerGene Pasquet <dev@etenil.net>2026-04-05 15:34:21 +0100
commit2a75c88de470a173067feee4df80cd8e3fb7a641 (patch)
tree65f6d158f635c82bf11c3b25a99f1404f3808fb4 /Makefile
parent526e6cdcdf1025d5e29680bc99ab910c79789764 (diff)
Cleanup and egg!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 960f42e..3fae2a7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,9 @@ engine: $(OBJECT_FILES)
bin:
@mkdir -p $@
+downstroke:
+ @mkdir -p $@
+
# Explicit inter-module dependencies
bin/entity.o:
bin/tilemap.o:
@@ -19,9 +22,9 @@ bin/physics.o: bin/entity.o bin/world.o bin/tilemap.o
bin/renderer.o: bin/entity.o bin/tilemap.o bin/world.o
# Pattern rule: compile each module as a library unit
-bin/%.o bin/%.import.scm: %.scm | bin
- csc -c -J -unit $* $*.scm -o bin/$*.o -I bin
- @if [ -f $*.import.scm ]; then mv $*.import.scm bin/; fi
+bin/%.o: %.scm | bin downstroke
+ csc -c -J -unit downstroke/$* $*.scm -o bin/$*.o -I bin -L bin/downstroke
+ @mkdir -p bin/downstroke && if [ -f downstroke/$*.import.scm ]; then mv downstroke/$*.import.scm bin/downstroke/; fi
.PHONY: clean test engine demos