-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 997 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
OCAMLBUILDFLAGS=-cflags "-w +a-e-9-44-48" -use-menhir -menhir "menhir -v" -classic-display -use-ocamlfind -quiet -ocamlc ocamlc -ocamlopt ocamlopt
COREFLAGS=-pkg core_kernel \
-tag short_paths \
-cflags -strict-sequence
.PHONY: install test.native search.native
all: test search
OCAMLDEP= ocamlfind ocamldep -package core_kernel \
-I src one-line
test:
ocamlbuild $(COREFLAGS) $(OCAMLBUILDFLAGS) ./test.native
OCAMLDEP= ocamlfind ocamldep -package core_kernel \
-I src one-line
search:
ocamlbuild $(COREFLAGS) $(OCAMLBUILDFLAGS) ./search.native
OCAMLDEP= ocamlfind ocamldep -package core_kernel \
-I src one-line
dev:
ocamlbuild $(COREFLAGS) $(OCAMLBUILDFLAGS) Parser.cmx
%.deps :
$(OCAMLDEP) src/$(basename $@).ml> .depend
ocamldot .depend > deps.dot
dot -Tsvg deps.dot >deps.svg
depgraph :
$(OCAMLDEP) src/*.ml src/*.mli \
| grep -v Test | grep -v Extract > .depend
ocamldot .depend > deps.dot
dot -Tsvg deps.dot >deps.svg