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 B143627281 for ; Sat, 2 Mar 2019 09:44:38 -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 adiEWWecApfQ for ; Sat, 2 Mar 2019 09:44:38 -0500 (EST) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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 62A2E24DAB for ; Sat, 2 Mar 2019 09:44:38 -0500 (EST) Received: by mail-lj1-f194.google.com with SMTP id g80so611080ljg.6 for ; Sat, 02 Mar 2019 06:44:38 -0800 (PST) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id v1sm250629lfg.13.2019.03.02.06.44.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Mar 2019 06:44:35 -0800 (PST) Date: Sat, 2 Mar 2019 17:44:34 +0300 From: Cyrill Gorcunov Subject: [tarantool-patches] [PATCH] build: tags -- Exclude unneeded directories Message-ID: <20190302144434.GC13301@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --- 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)