-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
54 lines (36 loc) · 1003 Bytes
/
makefile
File metadata and controls
54 lines (36 loc) · 1003 Bytes
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
CONFIG ?= config.toml
TARGET_DIR = target/release
REDLINE=$(TARGET_DIR)/redline
REDLINE_ASSIST=$(TARGET_DIR)/redline-assist
export RUST_LOG = info
remove-artifacts:
@-rm $(REDLINE) $(REDLINE_ASSIST)
build: remove-artifacts $(REDLINE) $(REDLINE_ASSIST)
$(REDLINE) $(REDLINE_ASSIST):
@cargo build --release --bins
bench: $(REDLINE)
@$(REDLINE) $(CONFIG)
OUTPUT ?=
report: $(REDLINE_ASSIST)
@$(REDLINE_ASSIST) report $(OUTPUT)
bench-report: bench report
prepare: $(REDLINE_ASSIST)
@$(REDLINE_ASSIST) prepare $(CONFIG)
close: $(REDLINE_ASSIST)
@$(REDLINE_ASSIST) close $(CONFIG)
clean: $(REDLINE_ASSIST)
@$(REDLINE_ASSIST) cleanup
clean-all: $(REDLINE_ASSIST)
@$(REDLINE_ASSIST) cleanup -a
THIS ?=
THAT ?=
SENSITIVITY ?= 15
SILENT ?= false
define compare_command
@$(REDLINE_ASSIST) compare --sensitivity $(SENSITIVITY) $(THIS) $(THAT)
endef
compare: $(REDLINE_ASSIST)
$(compare_command)
compare-ignore-error:
-$(compare_command)
bench-compare: bench compare-ignore-error clean