diff options
| author | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-04-19 09:05:32 +0000 |
|---|---|---|
| committer | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-04-19 09:05:32 +0000 |
| commit | 56f1f8a89dcfe68ca7cfde06580ee9dcf1056d85 (patch) | |
| tree | 51bbff3ad2269f1b6022e699b649548005d4ae3a | |
| parent | 5ef784b7b23561d6732a7cd52441c4dae5210640 (diff) | |
| download | ocaml-56f1f8a89dcfe68ca7cfde06580ee9dcf1056d85.tar.gz | |
makefile target to build the stdlib documentation as html
(Patch by Simon Cruanes)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14645 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | ocamldoc/Makefile | 8 |
2 files changed, 14 insertions, 0 deletions
@@ -723,6 +723,12 @@ ocamldoc: ocamlc ocamlyacc ocamllex otherlibraries ocamldoc.opt: ocamlc.opt ocamlyacc ocamllex cd ocamldoc && $(MAKE) opt.opt +# Documentation + +html_doc: ocamldoc + make -C ocamldoc html_doc + @echo "documentation is in ./ocamldoc/stdlib_html/" + partialclean:: cd ocamldoc && $(MAKE) clean diff --git a/ocamldoc/Makefile b/ocamldoc/Makefile index f6d7b15ab2..f5e47a59bd 100644 --- a/ocamldoc/Makefile +++ b/ocamldoc/Makefile @@ -181,6 +181,7 @@ $(OCAMLDOC_LIBCMXA): $(LIBCMXFILES) $(OCAMLOPT) -a -o $@ $(LINKFLAGS) $(OCAMLSRCDIR)/tools/depend.cmx $(LIBCMXFILES) manpages: stdlib_man/Pervasives.3o +html_doc: stdlib_html/Pervasives.html dot: $(EXECMOFILES) $(OCAMLDOC_RUN) -dot -dot-reduce -o ocamldoc.dot $(INCLUDES) \ @@ -306,6 +307,13 @@ stdlib_man/Pervasives.3o: $(STDLIB_MLIS) -t "OCaml library" -man-mini \ $(STDLIB_MLIS) +stdlib_html/Pervasives.html: $(STDLIB_MLIS) + $(MKDIR) stdlib_html + $(OCAMLDOC_RUN) -d stdlib_html -html $(INCLUDES) \ + -t "OCaml library" \ + $(STDLIB_MLIS) + + autotest_stdlib: dummy $(MKDIR) $@ $(OCAMLDOC_RUN) -g autotest/odoc_test.cmo\ |
