From: Ralf Habacker Date: Tue, 2 Apr 2024 10:48:35 +0000 (+0200) Subject: cmake: Add missing docbook-based documentation X-Git-Tag: dbus-1.15.10~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e41498558788a2cfb9c0cb3359aced01c268fea;p=thirdparty%2Fdbus.git cmake: Add missing docbook-based documentation With this commit, the html documentation for dbus-faq, dbus-specification, dbus-test-plan, dbus-tutorial is now also created and installed. --- diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index db93daece..fbcd84ba3 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -125,7 +125,11 @@ macro(add_docbook _target) set(STYLESHEET "${DOCBOOKXSL_DIR}/manpages/docbook.xsl") set(INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/man/man${ARGS_MAN_CATEGORY}) else() - set(_outname "${_target}.${ARGS_MAN_CATEGORY}.html") + if (NOT ARGS_MAN_CATEGORY) + set(_outname "${_target}.html") + else() + set(_outname "${_target}.${ARGS_MAN_CATEGORY}.html") + endif() set(STYLESHEET "${DOCBOOKXSL_DIR}/html/docbook.xsl") set(INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/doc/dbus) endif() @@ -185,6 +189,10 @@ add_docbook(dbus-send TEMPLATE dbus-send.1.xml.in MAN_CATEGORY 1 FORMATS ${forma add_docbook(dbus-test-tool TEMPLATE dbus-test-tool.1.xml.in MAN_CATEGORY 1 FORMATS ${formats}) add_docbook(dbus-uuidgen TEMPLATE dbus-uuidgen.1.xml.in MAN_CATEGORY 1 FORMATS ${formats}) add_docbook(dbus-update-activation-environment TEMPLATE dbus-update-activation-environment.1.xml.in MAN_CATEGORY 1 FORMATS ${formats}) +add_docbook(dbus-faq SOURCE dbus-faq.xml FORMATS html) +add_docbook(dbus-specification SOURCE dbus-specification.xml FORMATS html) +add_docbook(dbus-test-plan SOURCE dbus-test-plan.xml FORMATS html) +add_docbook(dbus-tutorial SOURCE dbus-tutorial.xml FORMATS html) # # handle html index file