-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (33 loc) · 964 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
44
45
46
47
48
49
OCB=ocamlbuild -use-ocamlfind -j 0
DOTFILE=_project.dot
bin:
$(OCB) main.byte
native:
$(OCB) main.native
test:
$(OCB) -no-links test.byte --
test.native:
$(OCB) -no-links test.native --
doc:
$(OCB) project.docdir/index.html
view_doc: doc
xdg-open project.docdir/index.html
full_dot: ocamldot bin
ocamldep -I _build _build/*.ml _build/*.mli | _build/tools/ocamldot/ocamldot.byte -fullgraph > _build/$(DOTFILE)
dot: ocamldot bin
ocamldep -I _build _build/*.ml _build/*.mli | _build/tools/ocamldot/ocamldot.byte > _build/$(DOTFILE)
view_dot: dot
dot -T xlib _build/$(DOTFILE) &
view_full_dot: full_dot
dot -T xlib _build/$(DOTFILE) &
all: bin doc dot
clean:
$(OCB) -clean
distclean: clean
rm -rf *~
rm -rf examples/*/*~
archive:
hg archive --type tbz2 ../fzip.tar.bz2
ocamldot:
$(OCB) tools/ocamldot/ocamldot.byte
.PHONY: bin native test test.native doc view_doc full_dot dot view_dot view_full_dot all clean distclean archive ocamldot