Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tarantool <tarantool-patches@freelists.org>
Subject: [tarantool-patches] [PATCH v2] build: tags -- Exclude unneeded directories
Date: Sat, 2 Mar 2019 18:40:12 +0300	[thread overview]
Message-ID: <20190302154012.GE13301@uranus.lan> (raw)
In-Reply-To: <20190302151013.GD13301@uranus.lan>

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)
 

  reply	other threads:[~2019-03-02 15:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-02 14:44 [tarantool-patches] [PATCH] " Cyrill Gorcunov
2019-03-02 15:10 ` [tarantool-patches] " Cyrill Gorcunov
2019-03-02 15:40   ` Cyrill Gorcunov [this message]
2019-03-04  9:57     ` [tarantool-patches] [PATCH v2] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190302154012.GE13301@uranus.lan \
    --to=gorcunov@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH v2] build: tags -- Exclude unneeded directories' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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