summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-11-02 12:40:24 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2022-11-02 13:41:14 +0100
commitacb5002a7cd03253522978e70258589e9b262216 (patch)
tree4a0d00d448f99b05474a095d40db182a4cbe56a9
parentbd0abd856f1e3e505572f434efafa38254de2f3b (diff)
Set our entities as dependencies in manpage generation
Changes in the entities do not lead to a rebuild of the manpages otherwise. We also try to have each lingua have its own (translated) entities as dependencies rather than all as the old code order would have suggested. Gbp-Dch: Ignore
-rw-r--r--CMake/Documentation.cmake15
1 files changed, 8 insertions, 7 deletions
diff --git a/CMake/Documentation.cmake b/CMake/Documentation.cmake
index 1df0960a4..f3eb4c5e1 100644
--- a/CMake/Documentation.cmake
+++ b/CMake/Documentation.cmake
@@ -270,20 +270,20 @@ function(add_docbook target)
list(APPEND formats MANPAGE)
endif()
- foreach(document ${DOC_TRANSLATED_ENTITIES})
- foreach(lang ${DOC_LINGUAS})
- po4a_one(po4a_stamp po4a_out ${document} "${lang}" "")
- list(APPEND DOC_DEPENDS ${po4a_stamp})
- endforeach()
- endforeach()
-
foreach(document ${DOC_DOCUMENTS})
foreach(lang ${DOC_LINGUAS})
+ set(DOC_TRANSLATED_DEPENDS ${DOC_DEPENDS})
+ foreach(entity ${DOC_TRANSLATED_ENTITIES})
+ po4a_one(po4a_stamp po4a_out ${entity} "${lang}" "")
+ list(APPEND DOC_TRANSLATED_DEPENDS ${po4a_stamp})
+ endforeach()
+
po4a_one(po4a_stamp po4a_out ${document} "${lang}" "${DOC_DEPENDS}")
xsltproc_one(STAMP_OUT xslt_stamp
STAMP ${po4a_stamp}
FULL_DOCUMENT ${po4a_out}
INSTALL ${DOC_INSTALL}
+ DEPENDS "${DOC_TRANSLATED_DEPENDS}"
${formats})
list(APPEND stamps ${xslt_stamp})
@@ -292,6 +292,7 @@ function(add_docbook target)
STAMP ${document}
FULL_DOCUMENT ${document}
INSTALL ${DOC_INSTALL}
+ DEPENDS "${DOC_DEPENDS}"
${formats})
list(APPEND stamps ${xslt_stamp})