-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (43 loc) · 1.9 KB
/
Makefile
File metadata and controls
60 lines (43 loc) · 1.9 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
.PHONY: all build check test clean fmt lint dev-server dev-agent dev-web docs
all: build
# ── Build ──────────────────────────────────────────────
build:
cargo build --release
build-server:
cargo build --release -p podmesh-server
build-agent:
cargo build --release -p podmesh-agent
build-cli:
cargo build --release -p podmesh-cli
# ── Development ────────────────────────────────────────
dev-server:
cargo watch -x 'run -p podmesh-server'
dev-agent:
cargo watch -x 'run -p podmesh-agent'
dev-web:
cd web && npm run dev
# ── Quality ────────────────────────────────────────────
check:
cargo check --workspace
test:
cargo test --workspace
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
lint:
cargo clippy --workspace --all-targets -- -D warnings
# ── Docs ───────────────────────────────────────────────
docs:
cargo doc --workspace --no-deps --open
# ── Clean ──────────────────────────────────────────────
clean:
cargo clean
rm -rf web/.next web/node_modules
# ── Container ──────────────────────────────────────────
container-build:
podman build -t podmesh-server -f Containerfile.server .
podman build -t podmesh-agent -f Containerfile.agent .
# ── Install ────────────────────────────────────────────
install-cli:
cargo install --path crates/podmesh-cli