[tarantool-patches] [PATCH v2] build: tags -- Exclude unneeded directories

Cyrill Gorcunov gorcunov at gmail.com
Sat Mar 2 18:40:12 MSK 2019


When building "tags" target we scan the whole working
directory which is redundant. In particular .git,.pc,patches
directories should not be scanned for sure.
---
 v2:
  - fix typos

 CMakeLists.txt |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: tarantool.git/CMakeLists.txt
===================================================================
--- tarantool.git.orig/CMakeLists.txt
+++ tarantool.git/CMakeLists.txt
@@ -137,7 +137,10 @@ check_function_exists(getprogname HAVE_G
 #
 # Enable 'make tags' target.
 #
-add_custom_target(tags COMMAND ${CTAGS} -R -f tags
+list(APPEND tagsExclude "--exclude=.git/*")
+list(APPEND tagsExclude "--exclude=.pc/*")
+list(APPEND tagsExclude "--exclude=patches/*")
+add_custom_target(tags COMMAND ${CTAGS} -R ${tagsExclude} -f tags
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
 add_custom_target(ctags DEPENDS tags)
 




More information about the Tarantool-patches mailing list