summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2019-03-15 10:52:33 +0100
committerCorentin Noël <corentin.noel@collabora.com>2019-03-15 10:52:33 +0100
commitedc519c248cca94c47a3fbcd753299b3d22c9221 (patch)
tree36917589dbc6afd79c869377bfa7734c3f327dbc
parent5a5da4008d704c1a00c0cfd964646371f80743b4 (diff)
downloadvala-wip/devhelp-internal.tar.gz
doc: Allow to build devhelp of the internal documentationwip/devhelp-internal
-rw-r--r--configure.ac3
-rw-r--r--doc/Makefile.am24
2 files changed, 25 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 16ebd1f81..27a4dc1e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -189,6 +189,9 @@ fi
AM_CONDITIONAL(HAVE_CGRAPH, test "$have_cgraph" = "yes")
AM_CONDITIONAL(ENABLE_VALADOC, test x$enable_valadoc = xyes)
+AC_ARG_ENABLE(devhelp-doclet, AS_HELP_STRING([--enable-devhelp-doclet], [Use the devhelp doclet instead of HTML when building the documentation]), enable_devhelp_doclet=$enableval, enable_devhelp_doclet=no)
+AM_CONDITIONAL(ENABLE_DEVHELP_DOCLET, test x$enable_devhelp_doclet = xyes)
+
AC_PATH_PROG([XSLTPROC], [xsltproc], :)
AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index d2684a0e0..2799242a2 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -67,6 +67,16 @@ endif
cd $(DESTDIR)$(man1dir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@.1 vapigen.1
endif
+if ENABLE_DEVHELP_DOCLET
+COMMON_VALADOCFLAGS_DOCLET = \
+ --doclet=$(top_builddir)/valadoc/doclets/devhelp/.libs \
+ $(NULL)
+else
+COMMON_VALADOCFLAGS_DOCLET = \
+ --doclet=$(top_builddir)/valadoc/doclets/html/.libs \
+ --doclet-arg "--no-browsable-check" \
+ $(NULL)
+endif
if ENABLE_VALADOC
COMMON_VALADOCFLAGS = \
@@ -79,9 +89,8 @@ COMMON_VALADOCFLAGS = \
--pkg config \
--pkg gmodule-2.0 \
--directory=internal-apis/ \
- --doclet=$(top_builddir)/valadoc/doclets/html/.libs \
- --doclet-arg "--no-browsable-check" \
--basedir=internal-apis/ \
+ $(COMMON_VALADOCFLAGS_DOCLET) \
$(NULL)
if HAVE_CGRAPH
@@ -150,6 +159,17 @@ internal-apis/valadoc: $(valadoc_VALASOURCES) internal-apis/codegen
@touch $@
internal-api-docs: internal-apis/gee internal-apis/vala internal-apis/ccode internal-apis/codegen internal-apis/valadoc
+
+if ENABLE_DEVHELP_DOCLET
+devhelpdocdir = $(datadir)/gtk-doc/html/
+devhelpdoc_DATA = \
+ internal-apis/gee \
+ internal-apis/vala \
+ internal-apis/ccode \
+ internal-apis/codegen \
+ internal-apis/valadoc \
+ $(NULL)
+endif
endif
clean-local: