forked from tikv/rust-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 775 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
.PHONY: all build test format bench clean examples
ENABLE_FEATURES ?= default
all: format build test examples
build:
cargo build --features="${ENABLE_FEATURES}"
test:
cargo test --features="${ENABLE_FEATURES}" -- --nocapture
dev: format test
format:
@cargo fmt --all -- --check >/dev/null || cargo fmt --all
bench: format
RUSTFLAGS="--cfg bench" cargo bench --features="${ENABLE_FEATURES}" -- --nocapture
clean:
cargo clean
examples:
cargo build --example advanced
cargo build --example local
cargo build --example make_auto_flush_static_counter
cargo build --example make_auto_flush_static_metric_histogram
cargo build --example metric_enum
cargo build --example register_integration
cargo build --example simple
cargo build --example with_lazy_static