2024-05-26 21:13:46 +00:00
|
|
|
external-lib := \
|
|
|
|
$(wildcard external-lib/srfi/*.scm)
|
|
|
|
|
2024-05-23 20:26:49 +00:00
|
|
|
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) \
|
2024-05-23 20:26:49 +00:00
|
|
|
$(wildcard modules/ces/system/*.scm) \
|
|
|
|
$(wildcard modules/dom/*.scm) \
|
2024-05-24 19:27:46 +00:00
|
|
|
$(wildcard modules/math/*.scm) \
|
2024-05-24 21:37:55 +00:00
|
|
|
$(wildcard modules/lib/*.scm) \
|
2024-05-26 21:13:46 +00:00
|
|
|
$(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
|
|
|
|
2024-05-26 21:13:46 +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
|