Commits

Shlomi Fish committed 11d50cc

Aggregate more targets.

This time in the POD2MAN realm.

  • Participants
  • Parent commits bcfd300

Comments (0)

Files changed (2)

File src/Common.cmake

         VERBATIM
     )
     # The custom command needs to be assigned to a target.
-    ADD_CUSTOM_TARGET(
-        ${TARGET_NAME} ALL
-        DEPENDS ${DEST}
-    )
+    IF (POD2MAN_TARGET_IS_A_LIST)
+        LIST(APPEND "${TARGET_NAME}" "${DEST}")
+    ELSE (POD2MAN_TARGET_IS_A_LIST)
+        ADD_CUSTOM_TARGET(
+            ${TARGET_NAME} ALL
+            DEPENDS ${DEST}
+        )
+    ENDIF (POD2MAN_TARGET_IS_A_LIST)
 ENDMACRO(RUN_POD2MAN)
 
 MACRO(SIMPLE_POD2MAN TARGET_NAME SOURCE DEST SECTION)

File src/wml_include/CMakeLists.txt

 
 SET (dirs_to_make )
 SET (preproc_target_dests )
+SET (include_pods_dests )
+SET (POD2MAN_TARGET_IS_A_LIST 1)
 
 FOREACH (base ${myfiles})
 
         SET (POD2MAN_SOURCE_IS_IN_BINARY 1)
     ENDIF (is_binary)
     INST_RENAME_POD2MAN(
-        "include_${target_base}_pod"
+        "include_pods_dests"
         "${srcbase}"
         "${mannamebase}"
         "3"
     )
 ENDFOREACH(base)
 
+SET (POD2MAN_TARGET_IS_A_LIST )
+
 ADD_CUSTOM_TARGET(
     "preprocess_perl_includes" ALL
     DEPENDS ${preproc_target_dests}
 )
+
+ADD_CUSTOM_TARGET(
+    "includes_pods" ALL
+    DEPENDS ${include_pods_dests}
+)