-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 768 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 768 Bytes
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
all: help
# Run the program (usage: make run ARGS="parse -f list.txt")
run:
cargo run $(ARGS)
example:
cargo run -- parse -f examples/shopping_list.txt --verbose
runhelp:
cargo run -- --help
test:
cargo test
check: fmt clippy test
@echo "All checks passed!"
fmt:
cargo fmt --all
clippy:
cargo clippy -- -D warnings
clean:
cargo clean
help:
@echo "Available commands:"
@echo " make run ARGS=\"...\" - Run program with arguments"
@echo " make example - Run with example shopping list"
@echo " make test - Run tests"
@echo " make check - Run format, clippy and tests"
@echo " make fmt - Format code"
@echo " make clippy - Run clippy lints"
@echo " make clean - Clean build files"