lisp-game-jam/Makefile

23 lines
611 B
Makefile

modules := \
$(wildcard modules/*.scm) \
$(wildcard modules/ces/*.scm) \
$(wildcard modules/ces/component/*.scm) \
$(wildcard modules/ces/entity/*.scm) \
$(wildcard modules/ces/system/*.scm) \
$(wildcard modules/dom/*.scm) \
$(wildcard modules/math/*.scm) \
$(wildcard modules/lib/*.scm) \
$(wildcard modules/game/*.scm)
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