build: add sub-targets to the doc target

It's easier to debug and to customize scripting if there are sub-targets
that build up each target.
This commit is contained in:
dundargoc 2023-10-17 16:57:57 +02:00 committed by dundargoc
parent eadedfd908
commit 831d662ac6

View File

@ -942,7 +942,7 @@ add_custom_command(
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
add_custom_target(doc
DEPENDS ${VIMDOC_FILES} ${GEN_EVAL_FILES}
)
add_custom_target(doc-eval DEPENDS ${GEN_EVAL_FILES})
add_custom_target(doc-vim DEPENDS ${VIMDOC_FILES})
add_custom_target(doc)
add_dependencies(doc doc-vim doc-eval)