aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-09-06 11:11:59 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-09-06 20:54:53 +0200
commit9e8f9dd5d47cb7c896d095023e637e63ad42450c (patch)
treedf3b9bf0e554345e54acd3c3eee509444fe90b1d
parent5de6f97408d72705fd6f1e17d35b2877cfef1409 (diff)
downloadrneovim-9e8f9dd5d47cb7c896d095023e637e63ad42450c.tar.gz
rneovim-9e8f9dd5d47cb7c896d095023e637e63ad42450c.tar.bz2
rneovim-9e8f9dd5d47cb7c896d095023e637e63ad42450c.zip
cmake: add "generated-sources" target
This is intended to be used with source introspection tools like clangd, where it would useful to regenerate headers and source files, which introspection results depend on, without making a full rebuild which takes much longer time than just generating headers.
-rw-r--r--Makefile3
-rw-r--r--src/nvim/CMakeLists.txt6
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 72db67a0d9..6cbce899f0 100644
--- a/Makefile
+++ b/Makefile
@@ -142,6 +142,9 @@ clint-full: build/.ran-cmake
check-single-includes: build/.ran-cmake
+$(BUILD_CMD) -C build check-single-includes
+generated-sources: build/.ran-cmake
+ +$(BUILD_CMD) -C build generated-sources
+
appimage:
bash scripts/genappimage.sh
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index b32d54b28e..29a4e1e163 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -660,4 +660,10 @@ add_custom_target(
DEPENDS ${LINT_PRG} ${LINT_NVIM_SOURCES} ${LINT_SUPPRESS_FILE}
)
+add_custom_target(generated-sources DEPENDS
+ ${NVIM_GENERATED_FOR_SOURCES}
+ ${NVIM_GENERATED_FOR_HEADERS}
+ ${NVIM_GENERATED_SOURCES}
+)
+
add_subdirectory(po)