-
Notifications
You must be signed in to change notification settings - Fork 1
/
OMakeroot
78 lines (68 loc) · 2.39 KB
/
OMakeroot
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
########################################################################
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this file, to deal in the File without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the File, and to permit persons to whom the
# File is furnished to do so, subject to the following condition:
#
# THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE FILE OR
# THE USE OR OTHER DEALINGS IN THE FILE.
########################################################################
# The standard OMakeroot file.
# You will not normally need to modify this file.
# By default, your changes should be placed in the
# OMakefile in this directory.
#
# If you decide to modify this file, note that it uses exactly
# the same syntax as the OMakefile.
#
#
# Include the standard installed configuration files.
# Any of these can be deleted if you are not using them,
# but you probably want to keep the Common file.
#
open build/C
open build/OCaml
open build/LaTeX
#
# The command-line variables are defined *after* the
# standard configuration has been loaded.
#
DefineCommandVars()
#
# The documentation generator
#
OCAMLDOC = ocamldoc
#
# Generation of documentation from .ml or .mli files
#
OCamlDoc(name, modules, type) =
private.CMIFILES = $(addsuffix .cmi, $(modules))
.PHONY: doc
dir = $(ROOT)/doc
doc: $(CMIFILES)
python $(ROOT)/doc/doc.py $(dir) $(name) $(type) "$(modules)" "$(OCAMLINCLUDES)" "$(OCAMLPACKS)" "$(OCAML_LIBS)"
OCamlDocProgram(name, modules) =
OCamlDoc($(name), $(modules), "program")
OCamlDocLibrary(name, modules) =
OCamlDoc($(name), $(modules), "library")
#
# Use Camlp4
#
UseCamlp4(packs, files) =
OCAMLPACKS += $(packs)
OCAMLFINDFLAGS += -syntax camlp4o
$(addsuffix .cmx, $(files)):
$(addsuffix .o, $(files)):
$(addsuffix .cmi, $(files)):
$(addsuffix .cmo, $(files)):
#
# Include the OMakefile in this directory.
#
.SUBDIRS: .