forked from koenw/firetrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 817 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
.PHONY: help
help: # Show available `make` commands
@echo 'Available `make` commands:' >/dev/stderr
@echo >/dev/stderr
@awk -F'#' '/^[a-z][A-Za-z0-9]+/ {if (NF > 1) { sub(/:[^#]*/, ""); print $$1 "\t\t" $$2}}' Makefile
.PHONY: watch
watch: # Continuously run `cargo check` and `cargo test` on file changes
cargo watch -x check -x "test --all-features" --clear
.PHONY: test
test: # Run all tests
cargo test --all-features
.PHONY: fuzz
fuzz: # Run fuzzing tests
cargo +nightly fuzz run parse_command
.PHONY: run
run: debug # Run the `basic` example in verbose mode
RUST_LOG=INFO ./target/debug/examples/basic
.PHONY: doc
doc: # Open the API docs in the browser
cargo doc --open
.PHONY: debug
debug: # Create a debug build
cargo build
.PHONY: build
build: # Create a release build
cargo build --release