Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] build: tags -- Exclude unneeded directories
@ 2019-03-02 14:44 Cyrill Gorcunov
  2019-03-02 15:10 ` [tarantool-patches] " Cyrill Gorcunov
  0 siblings, 1 reply; 8+ messages in thread
From: Cyrill Gorcunov @ 2019-03-02 14:44 UTC (permalink / raw)
  To: tarantool

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.
---
 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)
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-04 15:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-02 14:44 [tarantool-patches] [PATCH] build: tags -- Exclude unneeded directories Cyrill Gorcunov
2019-03-02 15:10 ` [tarantool-patches] " Cyrill Gorcunov
2019-03-02 15:40   ` [tarantool-patches] [PATCH v2] " Cyrill Gorcunov
2019-03-04  9:57     ` Vladimir Davydov
2019-03-04 10:09       ` Cyrill Gorcunov
2019-03-04 10:15         ` Vladimir Davydov
2019-03-04 10:32           ` Cyrill Gorcunov
2019-03-04 15:44     ` Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox