Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (47 loc) · 1.66 KB
/
Copy pathMakefile
File metadata and controls
64 lines (47 loc) · 1.66 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ViFastKey: lệnh phát triển thường dùng.
# make test chạy test Python + Rust
# make check thêm lint/fmt/conformance
# make conformance sinh lại oracle và đồng bộ sang Rust
# make web dựng WASM + asset cho web demo
# make settings mở UI cấu hình desktop (egui)
PYTHON ?= python3
.PHONY: test test-python test-rust check conformance web web-test settings macos windows uefi uefi-package uefi-test deploy-web clean
test: test-python test-rust
test-python:
cd python && $(PYTHON) -m pytest -q
test-rust:
cd rust && cargo test --workspace
check: test
cd python && $(PYTHON) -m ruff check .
cd rust && cargo fmt --all -- --check
cd rust && cargo clippy --workspace --all-targets -- -D warnings
$(MAKE) conformance
git diff --exit-code -- python/conformance rust/conformance python/tests/golden python/tests/data rust/testdata python/vfk_core/data rust/crates/vfk-core/data rust/crates/vfk-suggest/data
conformance:
cd python && $(PYTHON) -m tools.export_conformance
cd rust && PYTHON=$(PYTHON) tools/sync_conformance.sh ../python
bench:
cd rust && python3 tools/bench_guard.py
web:
./web/build.sh
settings:
cd rust && cargo run -p vifastkey-settings
macos:
./macos/build.sh
# Build + test + đóng gói trên máy Windows `psvn` (Tailscale).
windows:
./packaging/build-windows-on-psvn.sh
uefi:
./uefi/tools/build.sh
uefi-package:
./uefi/package.sh
uefi-test:
./uefi/tools/test.sh
./uefi/tools/test-ui.sh
web-test:
cd web/test && node e2e.js
deploy-web:
./deploy/vifastkey_web/deploy-jp.sh
clean:
cd python && rm -rf .pytest_cache __pycache__ */__pycache__ *.egg-info build dist
cd rust && cargo clean