-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
30 lines (29 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
run-examples:
cargo run --example entity_basics
cargo run --example entity_hierarchy
cargo run --example entity_iterate_components
cargo run --example prefabs
cargo run --example relations
cargo run --example filters
cargo run --example hello_world
cargo run --example queries_basics
cargo run --example systems
cargo run --example systems_basics
cargo run --example systems_delta_time
cargo run --example dynamic_components
setup_emsdk:
# Way to dangerous to automatically delete a directory, imagine if user set /
@if [ -d $(EMSDK) ]; then echo "emsdk '$(EMSDK)' directory already exist, please delete-it manually"; exit 1; fi
# Install EMSDK
mkdir -p `dirname $(EMSDK)` && \
cd `dirname $(EMSDK)` && \
git clone https://github.com/emscripten-core/emsdk.git $(EMSDK) && \
cd $(EMSDK) && \
git checkout tags/3.1.10 && \
echo "13e29bd55185e3c12802bc090b4507901856b2ba" > ./emscripten-releases-tot.txt && \
./emsdk install tot && \
./emsdk activate tot
# Add to PATH
source $(EMSDK)/emsdk_env.sh
sudo echo "source $(EMSDK)/emsdk_env.sh" >> ~/.bashrc
sudo echo "source $(EMSDK)/emsdk_env.sh" >> ~/.zshrc