-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 1.15 KB
/
Copy pathMakefile
File metadata and controls
49 lines (36 loc) · 1.15 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
.PHONY: check test clippy fmt build dev clean help ax-helper
MANIFEST := src-tauri/Cargo.toml
help:
@echo "Ghost development tasks:"
@echo " make check - Run cargo check"
@echo " make test - Run all tests"
@echo " make clippy - Run clippy linter"
@echo " make fmt - Format code"
@echo " make fmt-check - Check format without fixing"
@echo " make build - Build desktop app (no bundle)"
@echo " make dev - Run dev app"
@echo " make ax-helper - Build GhostAXHelper sidecar (macOS only)"
@echo " make clean - Clean build artifacts"
@echo " make ci - Run all CI checks (fmt-check, clippy, test)"
check:
cargo check --manifest-path $(MANIFEST) --all-targets
test:
cargo test --manifest-path $(MANIFEST)
clippy:
cargo clippy --manifest-path $(MANIFEST) --all-targets -- -D warnings
fmt:
cargo fmt --manifest-path $(MANIFEST)
fmt-check:
cargo fmt --manifest-path $(MANIFEST) -- --check
build:
cargo tauri build --no-bundle
dev:
cargo tauri dev
ax-helper:
bash scripts/build-ghost-ax-helper.sh
icons:
bash scripts/generate-brand-icons.sh
clean:
cargo clean
ci: fmt-check clippy test
@echo "✅ All CI checks passed"