2024-05-19 17:34:25 +02:00
|
|
|
modules = \
|
|
|
|
modules/dom/canvas.scm \
|
|
|
|
modules/dom/document.scm \
|
|
|
|
modules/dom/element.scm \
|
|
|
|
modules/dom/event.scm \
|
|
|
|
modules/dom/image.scm \
|
|
|
|
modules/dom/media.scm \
|
|
|
|
modules/dom/window.scm \
|
|
|
|
modules/math.scm \
|
|
|
|
modules/math/rect.scm \
|
2024-05-20 16:37:08 +02:00
|
|
|
modules/math/vector.scm\
|
|
|
|
modules/console.scm
|
2024-05-19 17:34:25 +02:00
|
|
|
|
|
|
|
game.wasm: game.scm $(modules)
|
|
|
|
guild compile-wasm -L modules -o $@ $<
|
|
|
|
|
|
|
|
serve: game.wasm
|
|
|
|
guile -c '((@ (hoot web-server) serve))'
|
|
|
|
|
|
|
|
bundle: game.wasm
|
|
|
|
rm game.zip || true
|
|
|
|
zip game.zip -r assets/ js-runtime/ game.js game.css game.wasm index.html
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f game.wasm game.zip
|