aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.doc
diff options
context:
space:
mode:
authorGravatar mrmr1993 <mr_1993@hotmail.co.uk>2018-03-03 14:03:24 +0000
committerGravatar mrmr1993 <mr_1993@hotmail.co.uk>2018-03-05 14:35:30 +0000
commit5fda90cfe7ad79ee4e32681643b40d9fd0e573ee (patch)
treea9c5b8a955ebcdcacd8b2de52f7d8a2ddd186465 /Makefile.doc
parent4d916a65ef1274160a2ee9726b88de5245e800e8 (diff)
Build docs for plugins by default, add NOPLUGINDOCS flag to disable
Diffstat (limited to 'Makefile.doc')
-rw-r--r--Makefile.doc11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.doc b/Makefile.doc
index 9325ef7e6..8c34c9472 100644
--- a/Makefile.doc
+++ b/Makefile.doc
@@ -385,11 +385,18 @@ install-doc-index-urls:
# Documentation of the source code (using ocamldoc)
###########################################################################
+# To skip building docs for plugins and build docs for core only, set this
+# variable to 1 (or any non-empty value):
+NOPLUGINDOCS ?=
+
OCAMLDOCDIR=dev/ocamldoc
-DOCMLS=$(foreach lib,$(CORECMA:.cma=_MLLIB_DEPENDENCIES),$(addsuffix .ml, $($(lib))))
+DOCMLLIBS=$(if $(NOPLUGINDOCS), \
+ $(CORECMA:.cma=_MLLIB_DEPENDENCIES), \
+ $(CORECMA:.cma=_MLLIB_DEPENDENCIES) $(PLUGINSCMO:.cmo=_MLPACK_DEPENDENCIES))
+DOCMLS=$(foreach lib,$(DOCMLLIBS),$(addsuffix .ml, $($(lib))))
-DOCMLIS=$(wildcard $(addsuffix /*.mli, $(CORESRCDIRS)))
+DOCMLIS=$(wildcard $(addsuffix /*.mli, $(if $(NOPLUGINDOCS),$(CORESRCDIRS),$(SRCDIRS))))
# Defining options to generate dependencies graphs
DOT=dot