]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doc: Allow to build devhelp of the internal documentation wip/devhelp-internal
authorCorentin Noël <corentin.noel@collabora.com>
Fri, 15 Mar 2019 09:52:33 +0000 (10:52 +0100)
committerCorentin Noël <corentin.noel@collabora.com>
Fri, 15 Mar 2019 09:52:33 +0000 (10:52 +0100)
configure.ac
doc/Makefile.am

index 16ebd1f810e85ce9c4e59675b3b54efae85fe437..27a4dc1e14ee13a1b146c57ad20227e794bc3610 100644 (file)
@@ -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" != :)
 
index d2684a0e07ad3b1edb1738f49e62e8eb5e8a254f..2799242a24f8f5c3a020a0786af215ec23404058 100644 (file)
@@ -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: