1debug: clean_examples
2	# Does an incremental build where possible.
3	./compile.sh debug
4	cp ../../out/skottiekit_debug/skottiekit.js       ./examples/bin
5	cp ../../out/skottiekit_debug/skottiekit.wasm     ./examples/bin
6	cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
7
8debug_cpu: clean_examples
9	# Does an incremental build where possible.
10	./compile.sh debug cpu
11	cp ../../out/skottiekit_debug/skottiekit.js       ./examples/bin
12	cp ../../out/skottiekit_debug/skottiekit.wasm     ./examples/bin
13	cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
14
15release: clean_examples
16	# Does an incremental build where possible.
17	./compile.sh
18	cp ../../out/skottiekit/skottiekit.js       ./examples/bin
19	cp ../../out/skottiekit/skottiekit.wasm     ./examples/bin
20
21release_cpu: clean_examples
22	# Does an incremental build where possible.
23	./compile.sh cpu
24	cp ../../out/skottiekit/skottiekit.js       ./examples/bin
25	cp ../../out/skottiekit/skottiekit.wasm     ./examples/bin
26
27release_full: clean_examples
28	# Does an incremental build where possible.
29	./compile.sh full-build
30	cp ../../out/skottiekit/skottiekit.js       ./examples/bin
31	cp ../../out/skottiekit/skottiekit.wasm     ./examples/bin
32
33npm: clean_npm
34	./compile.sh full-build
35	cp ../../out/skottiekit/skottiekit.js       ./skottiekit/bin
36	cp ../../out/skottiekit/skottiekit.wasm     ./skottiekit/bin
37
38clean_examples:
39	rm -f ./examples/bin/*
40	mkdir -p ./examples/bin
41
42clean_npm:
43	rm -f ./skottiekit/bin/*
44	mkdir -p ./skottiekit/bin
45
46serve:
47	echo "Go check out http://localhost:8001/"
48	cd examples && python ../serve.py
49