2020-04-24 19:06:19 +00:00
|
|
|
debug: clean_examples
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.js ./examples/bin
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.wasm ./examples/bin
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
|
|
|
|
|
|
|
|
debug_cpu: clean_examples
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug cpu
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.js ./examples/bin
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.wasm ./examples/bin
|
|
|
|
cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
|
|
|
|
|
|
|
|
release: clean_examples
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh
|
|
|
|
cp ../../out/skottiekit/skottiekit.js ./examples/bin
|
|
|
|
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
|
|
|
|
|
|
|
|
release_cpu: clean_examples
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh cpu
|
|
|
|
cp ../../out/skottiekit/skottiekit.js ./examples/bin
|
|
|
|
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
|
|
|
|
|
2020-06-29 18:14:41 +00:00
|
|
|
release_full: clean_examples
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh full-build
|
|
|
|
cp ../../out/skottiekit/skottiekit.js ./examples/bin
|
|
|
|
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
|
|
|
|
|
2020-07-21 14:22:49 +00:00
|
|
|
npm: clean_npm
|
|
|
|
./compile.sh full-build
|
|
|
|
cp ../../out/skottiekit/skottiekit.js ./skottiekit/bin
|
|
|
|
cp ../../out/skottiekit/skottiekit.wasm ./skottiekit/bin
|
|
|
|
|
2020-04-24 19:06:19 +00:00
|
|
|
clean_examples:
|
|
|
|
rm -f ./examples/bin/*
|
|
|
|
mkdir -p ./examples/bin
|
|
|
|
|
2020-07-21 14:22:49 +00:00
|
|
|
clean_npm:
|
|
|
|
rm -f ./skottiekit/bin/*
|
|
|
|
mkdir -p ./skottiekit/bin
|
|
|
|
|
2020-04-24 19:06:19 +00:00
|
|
|
serve:
|
|
|
|
echo "Go check out http://localhost:8001/"
|
2020-06-29 18:14:41 +00:00
|
|
|
cd examples && python ../serve.py
|