From 6696a0b5fcb1b17895285d80d9636defb2df3f9d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 10 Apr 2024 14:49:03 -0400 Subject: Sloppily refactor into modules. --- Makefile | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3