-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (44 loc) · 1.02 KB
/
Makefile
File metadata and controls
63 lines (44 loc) · 1.02 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
.PHONY: run run-debug release lint fix build clean web web-release yandex-pack \
landing-dev landing-build landing-install full-build dev-both
# === GAME (Rust) ===
run:
cargo run --features native
run-debug:
cargo run --features remote_debug
release:
cargo build --release
web:
trunk serve --release --open
web-release:
trunk build --release
# === LANDING (React/Vite) ===
landing-install:
cd web && npm install
landing-dev:
cd web && npm run dev
landing-build:
cd web && npm run build
# === COMBINED ===
full-build: web-release
mkdir -p web/public/game
cp -r dist/* web/public/game/
cd web && npm run build
@echo "✓ Full build: web/dist/"
dev-both:
npx concurrently "trunk serve" "cd web && npm run dev"
yandex-pack: full-build
cd web/dist && zip -r ../../chertogon-yandex.zip .
@echo "Ready: chertogon-yandex.zip"
# === UTILITY ===
lint:
cargo fmt --check
cargo clippy -- -D warnings
fix:
cargo fmt
build:
cargo build
clean:
cargo clean
rm -rf dist
rm -rf web/dist
rm -f chertogon-yandex.zip