summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--README.md4
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d058c31..aeccf61 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ ASSETS_DST = $(patsubst game/www/%,dist/%,$(ASSETS_SRC))
TEST_PORT ?= 8000
+EMSDK ?= /usr/lib/emscripten
EMSDK_SYSROOT ?= $(EMSDK)/upstream/emscripten/cache/sysroot
EMCC_CFLAGS := -O3 \
-sUSE_GLFW=3 \
diff --git a/README.md b/README.md
index d3812c7..7fd9fb3 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,9 @@ cargo build --release --path game
Web builds require the [emscripten](https://emscripten.org/docs/getting_started/downloads.html) toolchain.
-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.
+Download emscripten, and make sure its added into your path.
+
+If you having build issues, make sure `EMSDK` is set to the library path of the toolchain. If you continue to have issues try installing emscripten though the git repo and the `emsdk` script.
To build for web, invoke the makefile. The output website will be in `dist`.