diff options
Diffstat (limited to 'bindings')
-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 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 |