aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--runtime/CMakeLists.txt6
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a741c564e2..717cf2f68d 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,10 @@ endif
helptags: | nvim
+$(BUILD_CMD) -C build helptags
+# Builds help HTML _and_ checks for invalid help tags.
+helphtml: | nvim helptags
+ +$(BUILD_CMD) -C build doc_html
+
functionaltest: | nvim
+$(BUILD_CMD) -C build functionaltest
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
index 70e4ca2eec..ad706af087 100644
--- a/runtime/CMakeLists.txt
+++ b/runtime/CMakeLists.txt
@@ -68,9 +68,9 @@ foreach(DF ${DOCFILES})
endforeach()
add_custom_target(helptags
- COMMAND ${CMAKE_COMMAND} -E remove ${GENERATED_RUNTIME_DIR}/doc/*
+ COMMAND ${CMAKE_COMMAND} -E remove doc/*
COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc
+ ${PROJECT_SOURCE_DIR}/runtime/doc doc
COMMAND "${PROJECT_BINARY_DIR}/bin/nvim"
-u NONE -i NONE -e --headless -c "helptags ++t doc" -c quit
DEPENDS
@@ -87,7 +87,7 @@ add_custom_command(OUTPUT ${GENERATED_HELP_TAGS}
add_custom_target(doc_html
COMMAND make html
DEPENDS
- ${GENERATED_HELP_TAGS}
+ helptags
WORKING_DIRECTORY "${GENERATED_RUNTIME_DIR}/doc"
)