From 55a579b9847971511aea1c1950ff9b668969f525 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 17 Nov 2025 16:50:20 -0500 Subject: wasm: remove makefile glob --- Makefile | 3 ++- README.md | 2 +- 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`. -- cgit v1.2.3-freya