diff options
author | dundargoc <gocdundar@gmail.com> | 2024-01-27 19:10:41 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-02-01 12:06:55 +0100 |
commit | 4c91194611086916c833d61e28e2f5e689316e83 (patch) | |
tree | b338025023370b019e7d766ecb66d792cc1eba77 /src | |
parent | cc197d04fc36a6ee4219f20772a7b39dd976edfd (diff) | |
download | rneovim-4c91194611086916c833d61e28e2f5e689316e83.tar.gz rneovim-4c91194611086916c833d61e28e2f5e689316e83.tar.bz2 rneovim-4c91194611086916c833d61e28e2f5e689316e83.zip |
build: various fixes
- Consistently use the variable CMAKE_BUILD_TYPE to select build type.
- Remove broken `doc_html` target.
- Remove swap files created by oldtest when cleaning.
- Only rerun `lintdoc` if any documentation files has changed.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 2e26e58c82..f393993894 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -954,9 +954,14 @@ add_custom_target(doc-vim DEPENDS ${VIMDOC_FILES}) add_custom_target(doc) add_dependencies(doc doc-vim doc-eval) -add_custom_target(lintdoc +set(lintdoc_touch ${TOUCHES_DIR}/lintdoc) +add_custom_command( + OUTPUT ${lintdoc_touch} + COMMAND ${CMAKE_COMMAND} -E touch ${lintdoc_touch} COMMAND ${CMAKE_COMMAND} -E env "VIMRUNTIME=${NVIM_RUNTIME_DIR}" $<TARGET_FILE:nvim_bin> --clean -l scripts/lintdoc.lua WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + DEPENDS ${DOCFILES} USES_TERMINAL) +add_custom_target(lintdoc DEPENDS ${lintdoc_touch}) add_dependencies(lintdoc nvim) |