-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (36 loc) · 1.17 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
wasm :
cd graphviz_interface; \
make -j16
compile_database:
bear --output ./graphviz_interface/compile_commands.json -- make wasm
format:
cd graphviz_interface; \
make format
link :
mkdir -p ~/.cache/typst/packages/preview/diagraph
ln -s "$(CURDIR)" ~/.cache/typst/packages/preview/diagraph/0.3.0
module :
mkdir -p ./diagraph
mkdir -p ./diagraph/graphviz_interface
cp ./graphviz_interface/diagraph.wasm ./diagraph/graphviz_interface/diagraph.wasm
cp ./graphviz_interface/protocol.typ ./diagraph/graphviz_interface/protocol.typ
cp ./internals.typ ./diagraph/internals.typ
cp ./lib.typ ./diagraph/lib.typ
cp ./README.md ./diagraph/README.md
cp ./typst.toml ./diagraph/typst.toml
cp ./LICENSE ./diagraph/LICENSE
clean : clean-link
cd graphviz_interface; \
make clean
clean-link:
rm -rf ~/.cache/typst/packages/preview/diagraph
wasi-stub:
git clone -n --depth=1 --filter=tree:0 https://github.com/astrale-sharp/wasm-minimal-protocol.git
cd wasm-minimal-protocol; \
git sparse-checkout set --no-cone wasi-stub; \
git checkout
cd wasm-minimal-protocol/wasi-stub; \
cargo install --path .
rm -rf wasm-minimal-protocol
manual: wasm
typst compile --root . ./doc/manual.typ