All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Makefile: Add tags rule
@ 2017-01-26 18:48 Stephen Boyd
       [not found] ` <20170126184814.5325-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Boyd @ 2017-01-26 18:48 UTC (permalink / raw)
  To: David Gibson; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---

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
 #
-- 
2.10.0.297.gf6727b0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Makefile: Add tags rule
       [not found] ` <20170126184814.5325-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2017-01-30  1:17   ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2017-01-30  1:17 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]

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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-30  1:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26 18:48 [PATCH v2] Makefile: Add tags rule Stephen Boyd
     [not found] ` <20170126184814.5325-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-01-30  1:17   ` David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.