Re: [PATCH v2] Makefile: Add tags rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Jan 26, 2017 at 10:48:14AM -0800, Stephen Boyd wrote:
> It's useful to have some tags to jump around sources. We don't
> include test sources in the toplevel Makefile because they
> probably aren't useful to main program development.
> 
> Signed-off-by: Stephen Boyd <stephen.boyd@xxxxxxxxxx>

Applied, thanks.

> ---
> 
> I noticed my previous patch wasn't pruning the *.tab.[ch] and *.lex.c
> files. This version corrects the find command so those aren't included.
> 
>  Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index 32dcfcf8e203..ce05eba6590b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -218,6 +218,12 @@ kup: dist
>  		$(KUPDIR)/dtc-$(dtc_version).tar.gz
>  endif
>  
> +tags: FORCE
> +	rm -f tags
> +	find . \( -name tests -type d -prune \) -o \
> +	       \( ! -name '*.tab.[ch]' ! -name '*.lex.c' \
> +	       -name '*.[chly]' -type f -print \) | xargs ctags -a
> +
>  #
>  # Testsuite rules
>  #

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux