aboutsummaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-03-10 15:49:16 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-03-10 15:49:16 +0000
commitb04776696359e54153e20c426419fe54b6766473 (patch)
tree68e231db7372b409c5c8661543d2ee395afccb25 /bindings
parenta523380c6b5ad1d53dc7b38e9aee6bc9868d18c5 (diff)
Adding ocamldoc generation.
Patch by Erick Tryzelaar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/Makefile5
-rw-r--r--bindings/ocaml/Makefile.ocaml7
2 files changed, 12 insertions, 0 deletions
diff --git a/bindings/ocaml/Makefile b/bindings/ocaml/Makefile
index 5cd3b89b57..5f1788e33e 100644
--- a/bindings/ocaml/Makefile
+++ b/bindings/ocaml/Makefile
@@ -10,4 +10,9 @@
LEVEL := ../..
DIRS = llvm bitreader bitwriter analysis executionengine
+ocamldoc:
+ $(Verb) for i in $(DIRS) ; do \
+ $(MAKE) -C $$i ocamldoc; \
+ done
+
include $(LEVEL)/Makefile.common
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index 8edb180c3d..55a052af7e 100644
--- a/bindings/ocaml/Makefile.ocaml
+++ b/bindings/ocaml/Makefile.ocaml
@@ -285,6 +285,13 @@ uninstall-cmxa::
endif
+##===- Generate documentation ---------------------------------------------===##
+
+$(ObjDir)/$(LIBRARYNAME).odoc: $(ObjectsCMI)
+ $(Echo) "Documenting $(notdir $@)"
+ $(Verb) $(OCAMLDOC) -I $(OcamlDir) -I $(ObjDir) -dump $@ $(OcamlHeaders)
+
+ocamldoc: $(ObjDir)/$(LIBRARYNAME).odoc
##===- Debugging gunk -----------------------------------------------------===##
printvars:: printcamlvars