-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (28 loc) · 968 Bytes
/
Makefile
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
cargo: src/*.rs src/structures/*.rs
@echo "Building with cargo and including templates in executable..."
RUSTFLAGS="" cargo build --release --features internal
debug: src/*.rs src/structures/*.rs
@echo "Building with cargo in debug mode..."
cargo build
check: src/*.rs src/structures/*.rs
@echo "Checking with cargo..."
cargo test --verbose
doc: src/*.rs src/structures/*.rs
@echo "Building documentation..."
cargo doc --document-private-items --bin ck3_history_extractor
dependencies:
@echo "Installing dependencies..."
sudo dnf install rustup rust-src cmake fontconfig-devel
crosscompile:
@echo "Setting up cross-compilation..."
rustup target add x86_64-pc-windows-gnu
sudo dnf install mingw64-gcc
windows: src/*.rs src/structures/*.rs
@echo "Building for Windows..."
RUSTFLAGS="" cargo build --target x86_64-pc-windows-gnu --release --features internal
clean:
@echo "Cleaning up..."
cargo clean
fmt:
@echo "Formatting code..."
cargo fmt