-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (44 loc) · 1.14 KB
/
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
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
CARGO = cargo
RUSTC = rustc
CROSS = CROSS_REMOTE=1 cross
all: build
build:
$(CARGO) build
release:
$(CARGO) build --release
dev:
CANDY_LOG=debug $(CARGO) watch -x run
run:
$(CARGO) run
test:
$(CARGO) test
clean:
$(CARGO) clean
clean-release:
rm -rf ./target/release/
rm -rf ./target/debug/
check:
$(CARGO) check
format:
$(CARGO) fmt
lint:
$(CARGO) clippy
fix:
$(CARGO) fix --allow-dirty --all-features && $(CARGO) fmt
linux-musl: clean-release
$(CROSS) build --release --target x86_64-unknown-linux-musl
aarch64-linux-musl: clean-release
$(CROSS) build --release --target aarch64-unknown-linux-musl
aarch64-android: clean-release
$(CROSS) build --release --target aarch64-linux-android
linux-gnu: clean-release
$(CROSS) build --release --target x86_64-unknown-linux-gnu
aarch64-linux-gnu: clean-release
$(CROSS) build --release --target aarch64-unknown-linux-gnu
windows-gnu: clean-release
$(CROSS) build --release --target x86_64-pc-windows-gnu
freebsd: clean-release
$(CROSS) build --release --target x86_64-unknown-freebsd
loongarch: clean-release
$(CROSS) build --release --target loongarch64-unknown-linux-gnu
.PHONY: all