[plasma/plasma-sdk] /: Move all docbook files from subdirs into doc/

Andreas Sturmlechner <[email protected]>
Newsgroups gmane.comp.kde.cvs,gmane.comp.kde.doc
Message-ID <[email protected]>
Git commit 30e11fb73008ab6fc5b7f7d089d6f23ea84e4750 by Andreas Sturmlechner.
Committed on 06/12/2024 at 21:07.
Pushed by ltoscano into branch 'master'.

Move all docbook files from subdirs into doc/

Bringing this project in line with 99% of other ECM based KDE projects.

kde-cli-tools taken as a template (thus ECMOptionalAddSubdirectory used in doc/)

Signed-off-by: Andreas Sturmlechner <[email protected]>

M  +4    -1    CMakeLists.txt
A  +3    -0    doc/CMakeLists.txt
A  +1    -0    doc/engineexplorer/CMakeLists.txt
R  +0    -0    doc/engineexplorer/man-plasmaengineexplorer.1.docbook [from: engineexplorer/man-plasmaengineexplorer.1.docbook - 100% similarity]
A  +1    -0    doc/kqml/CMakeLists.txt
R  +0    -0    doc/kqml/man-kqml.1.docbook [from: kqml/man-kqml.1.docbook - 100% similarity]
A  +1    -0    doc/plasmoidviewer/CMakeLists.txt
R  +0    -0    doc/plasmoidviewer/man-plasmoidviewer.1.docbook [from: plasmoidviewer/man-plasmoidviewer.1.docbook - 100% similarity]
M  +0    -2    engineexplorer/CMakeLists.txt
M  +0    -1    kqml/CMakeLists.txt
M  +0    -1    plasmoidviewer/CMakeLists.txt

https://invent.kde.org/plasma/plasma-sdk/-/commit/30e11fb73008ab6fc5b7f7d089d6f23ea84e4750

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 637cf0ae..346b7ce3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,7 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
 include(KDEClangFormat)
 include(KDEGitCommitHooks)
 include(ECMDeprecationSettings)
+include(ECMOptionalAddSubdirectory)
 include(ECMQmlModule)
 include(FeatureSummary)
 
@@ -88,12 +89,14 @@ add_subdirectory(plasmoidviewer)
 add_subdirectory(themeexplorer)
 add_subdirectory(lookandfeelexplorer)
 
+add_subdirectory(doc)
+kdoctools_install(po)
+
 # add clang-format target for all our real source files
 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
 
 ki18n_install(po)
-kdoctools_install(po)
 
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 00000000..5c99b157
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,3 @@
+ecm_optional_add_subdirectory(engineexplorer)
+ecm_optional_add_subdirectory(kqml)
+ecm_optional_add_subdirectory(plasmoidviewer)
diff --git a/doc/engineexplorer/CMakeLists.txt b/doc/engineexplorer/CMakeLists.txt
new file mode 100644
index 00000000..c4360a46
--- /dev/null
+++ b/doc/engineexplorer/CMakeLists.txt
@@ -0,0 +1 @@
+kdoctools_create_manpage (man-plasmaengineexplorer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
diff --git a/engineexplorer/man-plasmaengineexplorer.1.docbook b/doc/engineexplorer/man-plasmaengineexplorer.1.docbook
similarity index 100%
rename from engineexplorer/man-plasmaengineexplorer.1.docbook
rename to doc/engineexplorer/man-plasmaengineexplorer.1.docbook
diff --git a/doc/kqml/CMakeLists.txt b/doc/kqml/CMakeLists.txt
new file mode 100644
index 00000000..bb8ff4d4
--- /dev/null
+++ b/doc/kqml/CMakeLists.txt
@@ -0,0 +1 @@
+kdoctools_create_manpage (man-kqml.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
diff --git a/kqml/man-kqml.1.docbook b/doc/kqml/man-kqml.1.docbook
similarity index 100%
rename from kqml/man-kqml.1.docbook
rename to doc/kqml/man-kqml.1.docbook
diff --git a/doc/plasmoidviewer/CMakeLists.txt b/doc/plasmoidviewer/CMakeLists.txt
new file mode 100644
index 00000000..99a46344
--- /dev/null
+++ b/doc/plasmoidviewer/CMakeLists.txt
@@ -0,0 +1 @@
+kdoctools_create_manpage (man-plasmoidviewer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
diff --git a/plasmoidviewer/man-plasmoidviewer.1.docbook b/doc/plasmoidviewer/man-plasmoidviewer.1.docbook
similarity index 100%
rename from plasmoidviewer/man-plasmoidviewer.1.docbook
rename to doc/plasmoidviewer/man-plasmoidviewer.1.docbook
diff --git a/engineexplorer/CMakeLists.txt b/engineexplorer/CMakeLists.txt
index 446c676d..9de9b289 100644
--- a/engineexplorer/CMakeLists.txt
+++ b/engineexplorer/CMakeLists.txt
@@ -26,5 +26,3 @@ install(TARGETS plasmaengineexplorer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
 
 install(PROGRAMS org.kde.plasmaengineexplorer.desktop  DESTINATION ${KDE_INSTALL_APPDIR})
 install(FILES org.kde.plasmaengineexplorer.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
-
-kdoctools_create_manpage (man-plasmaengineexplorer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
diff --git a/kqml/CMakeLists.txt b/kqml/CMakeLists.txt
index 84d7d9ac..b9c65b19 100644
--- a/kqml/CMakeLists.txt
+++ b/kqml/CMakeLists.txt
@@ -22,5 +22,4 @@ set_target_properties(kqml PROPERTIES WIN32_EXECUTABLE FALSE)
 
 install(TARGETS kqml ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
 
-kdoctools_create_manpage (man-kqml.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
 install(FILES completions/kqml.zsh RENAME _kqml DESTINATION ${KDE_INSTALL_ZSHAUTOCOMPLETEDIR})
diff --git a/plasmoidviewer/CMakeLists.txt b/plasmoidviewer/CMakeLists.txt
index 010b9edc..02776c95 100644
--- a/plasmoidviewer/CMakeLists.txt
+++ b/plasmoidviewer/CMakeLists.txt
@@ -23,7 +23,6 @@ install(TARGETS plasmoidviewer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
 install(PROGRAMS org.kde.plasmoidviewer.desktop  DESTINATION ${KDE_INSTALL_APPDIR})
 install(FILES org.kde.plasmoidviewer.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
 
-kdoctools_create_manpage (man-plasmoidviewer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
 install(FILES completions/plasmoidviewer.zsh RENAME _plasmoidviewer DESTINATION ${KDE_INSTALL_ZSHAUTOCOMPLETEDIR})
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.