-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (37 loc) · 1.31 KB
/
Makefile
File metadata and controls
37 lines (37 loc) · 1.31 KB
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
pre:
cd constants && node rust.js
web-site:
cp extension/CHANGELOG.md doc/pages/
wasm:
cd crates/wasm && make web
web-demo: wasm
cd webview && rm -rf dist && npm run ins && npm run build:local
clean:
rm -rf ~/.cargo/registry/index/* ~/.cargo/.package-cache
coverage:
cargo tarpaulin -p pcap --ignore-tests --out Html --output-dir doc/public/coverage
gui-demo:
cargo tauri build --target x86_64-unknown-linux-gnu
@for f in target/x86_64-unknown-linux-gnu/release/bundle/deb/pcapviewer_gui_*_amd64.deb; do \
[ -f "$$f" ] && echo "Installing $$f ..." && sudo dpkg -i "$$f" && sudo apt-get install -f -y; \
done
re-intall:
rm $(which wasm-pack) && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
clear:
cargo clean && rm -rf dist webview/dist webview/node_modules crates/wasm/build plugin/node_modules plugin/dist doc/node_modules doc/.vitepress/dist
check-website: clear
make coverage
cd doc && npm install && npm run docs:build
make web-demo
check-tui: clear
cargo build --release -p pcapviewer-tui
check-web: clear
cd webview && pnpm install && npm run build:socket
cargo build --release -p pcapviewer-web
check-gui: clear
cd webview && pnpm install && npm run build:gui
cargo tauri build
check: check-website check-tui check-web check-gui
gui-uninstall:
sudo dpkg -r pcapviewer-gui
.PHONY: wasm