external-lib := \ $(wildcard external-lib/srfi/*.scm) 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) \ $(wildcard external-lib/srfi/*.scm) tests := test/tests/entity-manager-tests.scm game.wasm: game.scm $(modules) $(external-lib) guild compile-wasm -L modules -L external-lib -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 check: guild compile-wasm -L modules -L test -L external-lib --run $(tests) $< clean: rm -f game.wasm game.zip