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

Vladimir Davydov vdavydov.dev at gmail.com
Mon Mar 4 12:57:34 MSK 2019


On Sat, Mar 02, 2019 at 06:40:12PM +0300, Cyrill Gorcunov wrote:
> 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/*")

Great!

> +list(APPEND tagsExclude "--exclude=.pc/*")

What's in '.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