-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
62 lines (48 loc) · 1.51 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
# This file is part of aca_bot.
# aca_bot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# aca_bot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with aca_bot. If not, see <https://www.gnu.org/licenses/>.
target = target/
build:
cargo build --release &
@disown -a
all:
cargo build --release &
@disown -a
dev:
cargo run &
@disown -a
test:
cargo test &
@disown -a
clean:
rm -rf target
style-check:
@rustup component add rustfmt 2> /dev/null
cargo fmt
bench:
cargo bench --all-features &
@disown -a
doc:
cargo doc --open --no-deps
docs:
cargo doc --open --no-deps
help:
@echo "make - Build crate"
@echo "make build - Alias of make"
@echo "make all - Alias of make"
@echo "make dev - Build unoptimized dev build and run it"
@echo "make doc - Compile and view docs in web browser"
@echo "make docs - Alias of make doc"
@echo "make clean - Delete target/ directory"
@echo "make test - Build and run tests"
@echo "make bench - Build and run benches"
@echo "make style-check - Applies idiomatic styling to code"
@echo "make help - Print this help message"