summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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