-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 806 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
target/release/regular: src/main.rs src/lib.rs src/cangwu.rs src/te.rs Cargo.toml
cargo build --release
target/debug/regular: src/main.rs src/lib.rs src/cangwu.rs src/te.rs Cargo.toml
cargo build
pkg/regular_bg.wasm: src/wasm.rs src/lib.rs src/cangwu.rs src/te.rs src/temperament_class.rs src/uv.rs src/ratio.rs Cargo.toml
wasm-pack build --target web
regular_bg.wasm: pkg/regular_bg.wasm
wasm-opt -O4 pkg/regular_bg.wasm -o regular_bg.wasm
.PHONY: doc
doc:
cargo doc --all-features --target wasm32-unknown-unknown
.PHONY: lint
lint:
cargo clippy --target wasm32-unknown-unknown
.PHONY: test
test:
cargo test
.PHONY: wasm
wasm: pkg/regular_bg.wasm
.PHONY: release
release: target/release/regular
.PHONY: wasm-release
wasm-release: regular_bg.wasm
.PHONY: debug
debug: target/debug/regular