[stgt] [PATCH] trivial: support cscope in Makefile and gitignore

Hitoshi Mitake mitake.hitoshi at gmail.com
Sun Nov 24 15:23:02 CET 2013


At Tue, 29 Oct 2013 11:28:52 +0900,
Hitoshi Mitake wrote:
> 
> After applying this patch, "make cscope" can generate cscope files for
> tag jump. The generated files are ignored by the .gitignore file.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  .gitignore |    3 ++-
>  Makefile   |    5 +++++
>  2 files changed, 7 insertions(+), 1 deletion(-)

ping? This is a trivial one, but would be useful for tgt developers.

Thanks,
Hitoshi

> 
> diff --git a/.gitignore b/.gitignore
> index ca1c5d3..8c28cb7 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -31,4 +31,5 @@ usr/tgtd
>  usr/tgtadm
>  usr/tgtimg
>  
> -
> +# cscope files
> +cscope.*
> diff --git a/Makefile b/Makefile
> index b71ad7b..ad1f12f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -93,3 +93,8 @@ check32:
>  check64: override ARCH=-m64
>  check64:
>  	CC=$(CHECK_CC_FLAGS) $(MAKE) all
> +
> +cscope:
> +	find -name '*.[ch]' > cscope.files
> +	cscope -bq
> +
> -- 
> 1.7.10.4
> 
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list