summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-17 16:50:20 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-17 16:50:20 -0500
commit55a579b9847971511aea1c1950ff9b668969f525 (patch)
treeeb02d7385b3735f41165d64a2da29f4cacf9678a
parentupdate README (diff)
downloadDungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.tar.gz
DungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.tar.bz2
DungeonCrawl-55a579b9847971511aea1c1950ff9b668969f525.zip
wasm: remove makefile glob
-rw-r--r--Makefile3
-rw-r--r--README.md2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4da766d..d058c31 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $< $@
diff --git a/README.md b/README.md
index 32d90f6..d3812c7 100644
--- a/README.md
+++ b/README.md
@@ -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`.