-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (31 loc) · 924 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
.PHONY: clean byte native docs top install uninstall tests all dot
.DEFAULT: all
BUILD=ocamlbuild -use-ocamlfind
OFIND=ocamlfind
INST_BYT=_build/ocamion.cma
INST_NAT=_build/ocamion.cmxa _build/ocamion.a _build/ocamion.cmx
INST_OTH=_build/lib/*.mli _build/ocamion.cm[io]
# -----------------------------------
all : native byte
native :
$(BUILD) ocamion.cmxa
byte :
$(BUILD) ocamion.cma
top :
$(BUILD) ocamion.top
clean :
$(BUILD) -clean
# -----------------------------------
install :
$(OFIND) install ocamion META $(INST_BYT) $(INST_NAT) $(INST_OTH)
uninstall :
$(OFIND) remove ocamion
# -----------------------------------
docs :
$(BUILD) ocamion.docdir/index.html
man :
$(BUILD) -docflags "-man -man-mini" ocamion.docdir/man
%.mli :
$(BUILD) $*.inferred.mli && cp _build/lib/$*.inferred.mli lib/$*.mli
dot :
$(BUILD) -docflag -dot ocamion.docdir/dot && cp _build/ocamion.docdir/dot ocamion.dot