diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 127d9cf5af..839764121c 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -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)