forked from xtuc/wasm-coredump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 1003 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
target/debug/coredump-dump:
cargo build
target/debug/wasm-coredump-rewriter: lib/asc-coredump/build/runtime.wasm
cargo build
lib/asc-coredump/build/runtime.wasm: lib/asc-coredump/assembly/coredump.ts
make -C ./lib/asc-coredump build/runtime.wasm
.PHONY: test-runtime
test-runtime: lib/asc-coredump/build/runtime.wasm target/debug/coredump-dump
cd lib/asc-coredump && node tests/index.mjs
.PHONY: test-rewriter
test-rewriter: target/debug/wasm-coredump-rewriter
cd ./bin/rewriter && \
bash test/test.bash
.PHONY: test
test: test-runtime test-rewriter
cargo test
.PHONY: publish
publish:
cd ./lib/coredump-types && cargo publish
cd ./lib/coredump-encoder && cargo publish
cd ./lib/printer && cargo publish
cd ./lib/coredump-builder && cargo publish
cd ./lib/ast && cargo publish
cd ./lib/parser && cargo publish
cd ./bin/rewriter && cargo publish --allow-dirty
cd ./bin/wasmgdb && cargo publish
cd ./lib/coredump-to-stack && cargo publish
cd ./bin/debuginfo-split && cargo publish