-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
108 lines (85 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
SRCFILES = timedesc/*.ml timedesc/*.mli \
timere/*.ml timere/*.mli \
timere-parse/*.ml timere-parse/*.mli \
corpus/*.ml debug/*.ml \
timedesc-tests/*.ml \
timere-tests/*.ml \
fuzz/*.ml \
gen/*.ml \
timedesc-tzdb/*/*.ml timedesc-tzdb/*.mli \
timedesc-tzlocal/*/*.ml timedesc-tzlocal/*.mli \
timedesc-json/*.ml timedesc-json/*.mli \
timedesc-sexp/*.ml timedesc-sexp/*.mli \
export-js-tzdb-full/*.ml
OPAMFILES = *.opam
OCPINDENT = ocp-indent \
--inplace \
$(SRCFILES)
.PHONY: all
all :
dune build @all
.PHONY: timedesc
timedesc :
dune build timedesc/
.PHONY: timedesc-json
timedesc-json :
dune build timedesc-json
.PHONY: timere
timere :
dune build timere
.PHONY: timedesc-tests
timedesc-tests : timedesc
OCAMLRUNPARAM=b dune exec timedesc-tests/main.exe --no-buffer --force
.PHONY: timere-tests
timere-tests : timere
OCAMLRUNPARAM=b dune exec timere-tests/main.exe --no-buffer --force
.PHONY: cov-timedesc-tests
cov-timedesc-tests : timedesc
find . -name '*.coverage' | xargs rm -f
dune exec timedesc-tests/main.exe --instrument-with bisect_ppx --no-buffer --force timedesc/
bisect-ppx-report html
.PHONY: cov-timere-tests
cov-timere-tests : timere
find . -name '*.coverage' | xargs rm -f
OCAMLRUNPARAM=b dune exec timere-tests/main.exe --instrument-with bisect_ppx --no-buffer --force timere/
bisect-ppx-report html
.PHONY: debug
debug : lib
dune exec debug/main.exe
.PHONY: debug-parse
debug-parse : lib
dune exec debug-parse/main.exe
.PHONY: corpus
corpus: corpus-timeres corpus-date-times corpus-hmss corpus-spans
.PHONY: corpus-timeres
corpus-timeres:
dune exec corpus/timeres.exe > corpus-outputs/timeres.txt
.PHONY: corpus-date-times
corpus-date-times:
dune exec corpus/date_times.exe > corpus-outputs/date-times.txt
.PHONY: corpus-hmss
corpus-hmss:
dune exec corpus/hmss.exe > corpus-outputs/hmss.txt
.PHONY: corpus-spans
corpus-spans:
dune exec corpus/spans.exe > corpus-outputs/spans.txt
.PHONY: doc
doc :
dune build @doc
.PHONY: format
format :
$(OCPINDENT)
.PHONY: gen
gen :
dune exec gen/gen_time_zone_data.exe -- 1970 2040 full
.PHONY: export-js-tzdb-full
export-js-tzdb-full :
dune build export-js-tzdb-full/export.bc.js
dune build export-js-tzdb-full/export_all.bc.js
.PHONY: export-js-tzdb-none
export-js-tzdb-none :
dune build export-js-tzdb-none/export.bc.js
dune build export-js-tzdb-none/export_all.bc.js
.PHONY : clean
clean:
dune clean