forked from lodo1995/experimental.xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (56 loc) · 1.62 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
63
64
65
66
67
68
.PHONY: help
help:
@echo Available commands:
@echo - benchmark: builds and benchmarks the library
@echo - build-all: builds all targets except unittests, without executing anything
@echo - clean: deletes all binaries
@echo - clean-docs: deletes all documentation files
@echo - clean-random-benchmark: deletes random benchmark files
@echo - docs: generates documentation with ddox
@echo - help: shows this text
@echo - random-benchmark: builds the library and executes random benchmarks
@echo - random-benchmark-csv: as random-benchmark, but exports the results in CSV
@echo - test: builds and executes compliance tests
@echo - unittest: builds and executes unittests
@echo - unittest-cov: builds and executes unittest, collecting coverage statistics
.PHONY: benchmark
benchmark:
dub run -c benchmark -b release
.PHONY: build-all
build-all:
dub build -c benchmark -b release
dub build -c random-benchmark -b release
dub build -c test -b debug
.PHONY: clean
clean:
dub clean
$(RM) __test__library__
$(RM) std-experimental-xml
$(RM) lib*.a
$(RM) ..?*.lst .[!.]*.lst *.lst
.PHONY: clean-docs
clean-docs:
$(RM) __dummy.html
$(RM) docs.json
$(RM) -r docs
.PHONY: clean-random-benchmark
clean-random-benchmark:
$(RM) -f random-benchmark/*.xml
.PHONY: docs
docs:
dub build -b ddox
.PHONY: random-benchmark
random-benchmark:
@dub run -c random-benchmark -b release -q
.PHONY: random-benchmark-csv
random-benchmark-csv:
@dub run -c random-benchmark -b release -q -- csv
.PHONY: test
test:
dub run -c test -b debug
.PHONY: unittest
unittest:
dub test -b unittest
.PHONY: unittest-cov
unittest-cov:
dub test -b unittest-cov