From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CF70625D3F for ; Sat, 2 Mar 2019 10:40:15 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uMVtnjXYuN_B for ; Sat, 2 Mar 2019 10:40:15 -0500 (EST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 72F4625AA8 for ; Sat, 2 Mar 2019 10:40:15 -0500 (EST) Received: by mail-lf1-f54.google.com with SMTP id f16so558402lfk.12 for ; Sat, 02 Mar 2019 07:40:15 -0800 (PST) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id u14sm268790lfu.94.2019.03.02.07.40.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Mar 2019 07:40:13 -0800 (PST) Date: Sat, 2 Mar 2019 18:40:12 +0300 From: Cyrill Gorcunov Subject: [tarantool-patches] [PATCH v2] build: tags -- Exclude unneeded directories Message-ID: <20190302154012.GE13301@uranus.lan> References: <20190302144434.GC13301@uranus.lan> <20190302151013.GD13301@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190302151013.GD13301@uranus.lan> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: 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. --- 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)