-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
57 lines (48 loc) · 881 Bytes
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pdf:
cd src && \
pandoc -s -o chip8.pdf \
1-intro.md \
2-basics.md \
3-setup.md \
4-methods.md \
5-instr.md \
6-frontend.md \
7-wasm.md \
8-opcodes.md \
9-changes.md \
metadata.yaml
epub:
cd src && \
pandoc -s -o chip8.epub \
1-intro.md \
2-basics.md \
3-setup.md \
4-methods.md \
5-instr.md \
6-frontend.md \
7-wasm.md \
8-opcodes.md \
9-changes.md \
metadata.yaml
desktop:
cd code/desktop && \
cargo build --release
web:
cd code/wasm && \
wasm-pack build --target web && \
mv pkg/wasm_bg.wasm ../web && \
mv pkg/wasm.js ../web
clean: clean_pdf clean_desktop clean_web
clean_pdf:
rm -f src/chip8.pdf
clean_epub:
rm -f src/chip8.epub
clean_desktop:
cd code/desktop && \
cargo clean
clean_web:
rm -f code/web/wasm_bg.wasm && \
rm -f code/web/wasm.js && \
cd code/wasm && \
cargo clean
.PHONY: pdf desktop web clean