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.
This commit is contained in:
Ralf Habacker 2024-04-02 12:48:35 +02:00
parent 1caf0f62e0
commit 5e41498558

View file

@ -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