Skip to content
Browse files

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
  • Loading branch information...
1 parent 5ef784b commit 56f1f8a89dcfe68ca7cfde06580ee9dcf1056d85 @gasche gasche committed Apr 19, 2014
Showing with 14 additions and 0 deletions.
  1. +6 −0 Makefile
  2. +8 −0 ocamldoc/Makefile
View
6 Makefile
@@ -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
View
8 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\

0 comments on commit 56f1f8a

Please sign in to comment.
Something went wrong with that request. Please try again.