summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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`.