-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 927 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
38
39
.PHONY: all
all: clean check lint
.PHONY: build
build:
@cargo build
.PHONY: check
check:
@cargo check
.PHONY: clean
clean:
@cargo clean
.PHONY: format
format:
@cargo fmt
.PHONY: lint
lint:
@cargo clippy --all -- -D clippy::dbg-macro -D warnings
.PHONY: release
release:
@cargo build --release
.PHONY: help
help:
@echo "Usage: make [COMMAND]"
@echo ""
@echo "Commands:"
@echo " all\t\t Clean, check, lint, and test this package"
@echo " build\t\t Compile a local package and all of its dependencies"
@echo " check\t\t Check this package and all of its dependencies for errors"
@echo " clean\t\t Remove artifacts that cargo has generated in the past"
@echo " format\t Formats all bin and lib files of this crate using rustfmt"
@echo " lint\t\t Checks this package to catch common mistakes and improve its Rust code"
@echo " release\t Compile a local package and all of its dependencies for release"