diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-17 16:50:20 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-17 16:50:20 -0500 |
| commit | 55a579b9847971511aea1c1950ff9b668969f525 (patch) | |
| tree | eb02d7385b3735f41165d64a2da29f4cacf9678a | |
| parent | update README (diff) | |
| download | DungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.tar.gz DungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.tar.bz2 DungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.zip | |
wasm: remove makefile glob
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -26,7 +26,8 @@ dist: C_INCLUDE_PATH="$(EMSDK_SYSROOT)/include:$(C_INCLUDE_PATH)" \ cargo build --target wasm32-unknown-emscripten --profile wasm mkdir -p dist - cp ./target/wasm32-unknown-emscripten/wasm/game.{js,wasm} dist + cp ./target/wasm32-unknown-emscripten/wasm/game.js dist/game.js + cp ./target/wasm32-unknown-emscripten/wasm/game.wasm dist/game.wasm dist/%: game/www/% cp -r $< $@ @@ -25,7 +25,7 @@ cargo build --release --path game Web builds require the [emscripten](https://emscripten.org/docs/getting_started/downloads.html) toolchain. -Download that, and make sure its added into your path, and the `EMSDK` env variable is set. If you use the SDK and `source ./emsdk_env.sh` like the recommended installation instructions state, this should already be done for you. +Download emscripten, and make sure its added into your path. Also set the `EMSDK` env variable is set (often `/usr/lib/emscripten` when from a package manager). If you use the SDK and `source ./emsdk_env.sh` like the recommended installation instructions state, this should already be done for you. To build for web, invoke the makefile. The output website will be in `dist`. |