-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (48 loc) · 1.44 KB
/
Makefile
File metadata and controls
67 lines (48 loc) · 1.44 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
65
66
67
# Supported targets
TARGET_IOS := aarch64-apple-ios
TARGET_MACOS := aarch64-apple-darwin
TARGET_LINUX := x86_64-unknown-linux-gnu
TARGET_ANDROID := aarch64-linux-android
TARGET_WINDOWS := x86_64-pc-windows-msvc
.PHONY: all build build-release check clippy fmt \
build-ios build-ios-release \
build-macos build-macos-release \
build-linux build-linux-release \
build-android build-android-release \
build-windows build-windows-release \
clean doc
all: build-ios-release build-macos-release build-linux-release build-android-release build-windows-release
build:
cargo build
build-release:
cargo build --release
check:
cargo check
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --all-targets --all-features -- -D warnings
build-ios:
cargo build --target $(TARGET_IOS)
build-ios-release:
cargo build --target $(TARGET_IOS) --release
build-macos:
cargo build --target $(TARGET_MACOS)
build-macos-release:
cargo build --target $(TARGET_MACOS) --release
build-linux:
cargo build --target $(TARGET_LINUX)
build-linux-release:
cargo build --target $(TARGET_LINUX) --release
build-android:
cargo build --target $(TARGET_ANDROID)
build-android-release:
cargo build --target $(TARGET_ANDROID) --release
build-windows:
cargo build --target $(TARGET_WINDOWS)
build-windows-release:
cargo build --target $(TARGET_WINDOWS) --release
doc:
cargo doc --no-deps --open
clean:
cargo clean