Module: kamailio
Branch: master
Commit: bef434385f32a685241a431b54082751c590b32c
URL: 
https://github.com/kamailio/kamailio/commit/bef434385f32a685241a431b54082751c590b32c

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-12-17T11:38:14+01:00

cmake: module_doc made from two targets module_doc_text and module_doc_html

- targets for independent generation of text or html documentation

---

Modified: cmake/modules-docs.cmake

---

Diff:  
https://github.com/kamailio/kamailio/commit/bef434385f32a685241a431b54082751c590b32c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bef434385f32a685241a431b54082751c590b32c.patch

---

diff --git a/cmake/modules-docs.cmake b/cmake/modules-docs.cmake
index 256c6358b5c..f4ac35d3ba6 100644
--- a/cmake/modules-docs.cmake
+++ b/cmake/modules-docs.cmake
@@ -83,9 +83,17 @@ else()
     set(MODULE_DOC_PATH "${MODULE_PATH}/doc")
 
     add_custom_target(
-      ${MODULE_NAME}_doc
+      ${MODULE_NAME}_doc_text
       DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${MODULE_NAME}/${MODULE_NAME}.txt
-              ${DOCS_OUTPUT_DIR}/${MODULE_NAME}.html
+    )
+
+    add_custom_target(
+      ${MODULE_NAME}_doc_html DEPENDS ${DOCS_OUTPUT_DIR}/${MODULE_NAME}.html
+    )
+
+    add_custom_target(
+      ${MODULE_NAME}_doc DEPENDS ${MODULE_NAME}_doc_text
+                                 ${MODULE_NAME}_doc_html
     )
 
     # Each version has seperate custon coommands for not recompiling all if 1
@@ -106,7 +114,7 @@ else()
             # ${SINGLE_HTML_XSL}
           WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${MODULE_NAME}/doc
           COMMENT
-            "Generating documentation with xsltproc and lynx for 
${MODULE_NAME}"
+            "Generating text documentation with xsltproc and lynx for 
${MODULE_NAME}"
         )
 
         add_custom_command(
@@ -123,7 +131,7 @@ else()
             ${SINGLE_HTML_XSL}
           WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${MODULE_NAME}/doc
           COMMENT
-            "Generating documentation with xsltproc and lynx for 
${MODULE_NAME}"
+            "Generating html documentation with xsltproc and lynx for 
${MODULE_NAME}"
         )
       endif()
 
@@ -134,5 +142,6 @@ else()
         COMPONENT kamailio_docs
       )
     endif()
+
   endfunction()
 endif()

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to