summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2024-04-10 14:49:03 -0400
committerDavid Thompson <dthompson2@worcester.edu>2024-04-10 14:49:03 -0400
commit6696a0b5fcb1b17895285d80d9636defb2df3f9d (patch)
tree2cce306afcd7776925f725a382ae1a834513636c /Makefile
parent20b4e7c566cd268f8fafd3e2d3846513e31949e7 (diff)
Sloppily refactor into modules.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 25 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a20c180..94677e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,28 @@
-game.wasm: game.scm level.scm
- guile game.scm
+modules = \
+ strigoform/assets.scm \
+ strigoform/audio.scm \
+ strigoform/bullets.scm \
+ strigoform/canvas.scm \
+ strigoform/document.scm \
+ strigoform/element.scm \
+ strigoform/enemies.scm \
+ strigoform/event.scm \
+ strigoform/game-area.scm \
+ strigoform/image.scm \
+ strigoform/level-1.scm \
+ strigoform/level.scm \
+ strigoform/math.scm \
+ strigoform/particles.scm \
+ strigoform/scripts.scm \
+ strigoform/time.scm \
+ strigoform/type.scm \
+ strigoform/window.scm
-level.scm: level.tmx compile-map.scm
- guile compile-map.scm > level.scm
+game.wasm: game.scm $(modules)
+ guild compile-wasm -L . -o game.wasm game.scm
+
+strigoform/level-1.scm: level.tmx compile-map.scm
+ guile compile-map.scm > strigoform/level-1.scm
bundle: game.wasm
rm strigoform.zip || true
@@ -12,4 +32,4 @@ serve: game.wasm
guile web-server.scm
clean:
- rm game.wasm level.scm
+ rm game.wasm strigoform/level-1.scm