-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (50 loc) · 1.32 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
# Variables
CARGO = cargo
RUSTUP = rustup
build:
@echo "Building the project..."
$(CARGO) build
release:
@echo "Building the project in release mode..."
$(CARGO) build --release
run:
@echo "Running the project..."
$(CARGO) run
run-release:
@echo "Running the project in release mode..."
$(CARGO) run --release
clean:
@echo "Cleaning the project..."
$(CARGO) clean
test:
@echo "Running tests..."
$(CARGO) test
fmt:
$(CARGO) fmt -- --check
format:
@echo "Formatting code..."
$(CARGO) fmt
clippy:
@echo "Running Clippy linter..."
$(CARGO) clippy
update:
@echo "Updating Rust toolchain..."
$(RUSTUP) update
setup:
$(RUSTUP) component add clippy rustfmt
all: build test
help:
@echo "Available targets:"
@echo " build - Build the project"
@echo " release - Build the project in release mode"
@echo " run - Run the project"
@echo " run-release - Run the project in release mode"
@echo " clean - Clean the project"
@echo " test - Run tests"
@echo " fmt - Check code formatting"
@echo " format - Format code"
@echo " clippy - Run Clippy linter"
@echo " update - Update Rust toolchain"
@echo " setup - Install Clippy and other tools"
@echo " all - Build and test the project"
@echo " help - Show this help menu"