Emscripten: Corrected build instructions in documentation.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 26 Jun 2015 20:11:41 +0200
changeset 9782 fcf237e5e834
parent 9781 02273530b7bf
child 9783 013201812ffb
Emscripten: Corrected build instructions in documentation. And fixed a typo.
docs/README-emscripten.md
--- a/docs/README-emscripten.md	Thu Jun 25 11:49:48 2015 -0700
+++ b/docs/README-emscripten.md	Fri Jun 26 20:11:41 2015 +0200
@@ -3,13 +3,17 @@
 
 Build:
 
-    $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
+    $ mkdir build
+    $ cd build
+    $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
     $ emmake make
 
 Or with cmake:
 
-    $ emconfigure cmake ..
-    $ make
+    $ mkdir build
+    $ cd build
+    $ emcmake cmake ..
+    $ emmake make
 
 To build one of the tests:
 
@@ -22,7 +26,7 @@
 
 Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
 
-SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
+SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
 
     $ EMCONFIGURE_JS=1 emconfigure ../configure
     build as usual...