mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Separate emscripten build directory
This avoids the need to 'make clean' before you do a simulator build (or vice-versa).
This commit is contained in:
parent
b7a461d280
commit
ad6e919107
|
@ -69,7 +69,7 @@ You may want to test out changes in the emulator first. To do this, you'll need
|
|||
```
|
||||
cd movement/make
|
||||
emmake make
|
||||
python3 -m http.server 8000 -d build
|
||||
python3 -m http.server -d build-sim
|
||||
```
|
||||
|
||||
Finally, visit [watch.html](http://localhost:8000/watch.html) to see your work.
|
||||
|
|
4
make.mk
4
make.mk
|
@ -1,5 +1,9 @@
|
|||
##############################################################################
|
||||
ifndef EMSCRIPTEN
|
||||
BUILD = ./build
|
||||
else
|
||||
BUILD = ./build-sim
|
||||
endif
|
||||
BIN = watch
|
||||
|
||||
ifndef BOARD
|
||||
|
|
|
@ -28,9 +28,9 @@ do
|
|||
make clean
|
||||
emmake make FIRMWARE=$VARIANT
|
||||
mkdir "$sim_dir/$variant/"
|
||||
mv "build/watch.wasm" "$sim_dir/$variant/"
|
||||
mv "build/watch.js" "$sim_dir/$variant/"
|
||||
mv "build/watch.html" "$sim_dir/$variant/index.html"
|
||||
mv "build-sim/watch.wasm" "$sim_dir/$variant/"
|
||||
mv "build-sim/watch.js" "$sim_dir/$variant/"
|
||||
mv "build-sim/watch.html" "$sim_dir/$variant/index.html"
|
||||
done
|
||||
|
||||
echo "Done."
|
||||
|
|
Loading…
Reference in a new issue