]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Add missing docbook-based documentation
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 2 Apr 2024 10:48:35 +0000 (12:48 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 16 Apr 2024 07:53:59 +0000 (09:53 +0200)
With this commit, the html documentation for dbus-faq, dbus-specification,
dbus-test-plan, dbus-tutorial is now also created and installed.

doc/CMakeLists.txt

index db93daecebd45e1ab7873f0f4921e5e4f48a27bb..fbcd84ba35ba8ba3062df1aeb09079a11cca59d9 100644 (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