-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
43 lines (32 loc) · 865 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
34
35
36
37
38
39
40
41
42
43
OCAMLBUILD=ocamlbuild -use-ocamlfind
OCAMLFIND=ocamlfind
all: lib binary
binary:
$(OCAMLBUILD) re-nfa-command.native
lib:
$(OCAMLBUILD) re-nfa.a re-nfa.cma re-nfa.cmxa
clean:
$(OCAMLBUILD) -clean
test: short-tests regenerate-tests qcheck-tests
$(OCAMLBUILD) tests.native
./tests.native
short-tests:
$(OCAMLBUILD) tests.native
./tests.native
regenerate-tests:
$(OCAMLBUILD) regenerate_tests.native
./regenerate_tests.native
qcheck-tests:
$(OCAMLBUILD) qcheck_tests.native
./qcheck_tests.native
install: lib binary
$(OCAMLFIND) install re-nfa META \
_build/lib/nfa.cmi \
_build/lib/nfa_dot.cmi \
_build/lib/regex.cmi \
_build/lib/re-nfa.cma \
_build/lib/re-nfa.cmxa \
_build/lib/re-nfa.a
uninstall:
$(OCAMLFIND) remove re-nfa
.PHONY: all lib test clean