diff options
| -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`. |