-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 831 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
WASM_TARGET = target/wasm32-unknown-unknown/release/mercator.wasm
WASM_OUT = mercator/mercator.wasm
WASM_PKG = $(HOME)/.local/share/typst/packages/local/mercator/0.1.1/mercator.wasm
.PHONY: build doc harness clean
build:
cargo build --target wasm32-unknown-unknown --release
wasm-opt -O3 --enable-simd --enable-bulk-memory --enable-sign-ext --enable-nontrapping-float-to-int --enable-mutable-globals --enable-multivalue --traps-never-happen --fast-math --closed-world --directize --inline-functions-with-loops --converge $(WASM_TARGET) -o $(WASM_OUT)
cp $(WASM_OUT) $(WASM_PKG)
@ls -lh $(WASM_OUT)
doc: build
typst compile examples/documentation.typ examples/documentation.pdf --root .
harness:
cargo build --release --manifest-path harness/Cargo.toml
clean:
cargo clean
cargo clean --manifest-path harness/Cargo.toml