-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
48 lines (34 loc) · 948 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
40
41
42
43
44
45
46
47
48
BOT_CONFIG ?= config.yaml
build:
@nix-shell --run 'cargo build --color=always' 2>&1 | $(PAGER)
verbose-build:
@nix-shell --run 'cargo build --verbose --color=always' 2>&1 | $(PAGER)
release-build:
@nix-shell --run 'cargo build --release --color=always' 2>&1 | $(PAGER)
check:
@nix-shell --run 'cargo check --color=always' 2>&1 | $(PAGER)
test:
@nix-shell --run 'cargo test --color=always' 2>&1 | $(PAGER)
run:
@nix-shell --run '\
cargo run --bin egbot -- --config-file "$(BOT_CONFIG)"\
'
release-run:
@nix-shell --run '\
cargo run --release --bin egbot -- --config-file "$(BOT_CONFIG)"\
'
docs:
@nix-shell --run 'cargo doc --no-deps --all-features'
view-docs:
@nix-shell --run '\
BROWSER=chromium-browser \
cargo doc --no-deps --all-features --open \
'
clean:
@nix-shell --run 'cargo clean'
publish:
@nix-shell --run 'cargo test && cargo publish'
fmt:
@nix-shell --run 'cargo-fmt'
shell:
@nix-shell