lisp-game-jam/Makefile

33 lines
865 B
Makefile
Raw Permalink Normal View History

external-lib := \
$(wildcard external-lib/srfi/*.scm)
modules := \
$(wildcard modules/*.scm) \
$(wildcard modules/ces/*.scm) \
$(wildcard modules/ces/component/*.scm) \
2024-05-25 03:57:40 +00:00
$(wildcard modules/ces/entity/*.scm) \
$(wildcard modules/ces/system/*.scm) \
$(wildcard modules/dom/*.scm) \
$(wildcard modules/math/*.scm) \
2024-05-24 21:37:55 +00:00
$(wildcard modules/lib/*.scm) \
$(wildcard modules/game/*.scm) \
$(wildcard external-lib/srfi/*.scm)
2024-04-26 18:30:59 +00:00
2024-05-27 06:24:27 +00:00
tests := test/tests/entity-manager-tests.scm
2024-05-26 21:14:05 +00:00
game.wasm: game.scm $(modules) $(external-lib)
guild compile-wasm -L modules -L external-lib -o $@ $<
2024-04-26 18:30:59 +00:00
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
2024-05-27 06:24:27 +00:00
check:
guild compile-wasm -L modules -L test -L external-lib --run $(tests) $<
2024-05-26 21:14:05 +00:00
2024-04-26 18:30:59 +00:00
clean:
rm -f game.wasm game.zip