diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 15:49:16 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 15:49:16 +0000 |
commit | b04776696359e54153e20c426419fe54b6766473 (patch) | |
tree | 68e231db7372b409c5c8661543d2ee395afccb25 /bindings/ocaml | |
parent | a523380c6b5ad1d53dc7b38e9aee6bc9868d18c5 (diff) | |
download | external_llvm-b04776696359e54153e20c426419fe54b6766473.zip external_llvm-b04776696359e54153e20c426419fe54b6766473.tar.gz external_llvm-b04776696359e54153e20c426419fe54b6766473.tar.bz2 |
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/ocaml')
-rw-r--r-- | bindings/ocaml/Makefile | 5 | ||||
-rw-r--r-- | bindings/ocaml/Makefile.ocaml | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/bindings/ocaml/Makefile b/bindings/ocaml/Makefile index 5cd3b89..5f1788e 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 8edb180..55a052a 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 |