* [PATCH] Makefile: Add tags rule
@ 2017-01-25 19:26 Stephen Boyd
0 siblings, 0 replies; only message in thread
From: Stephen Boyd @ 2017-01-25 19:26 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>
---
Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index 32dcfcf8e203..316d6329cd4b 100644
--- a/Makefile
+++ b/Makefile
@@ -218,6 +218,13 @@ kup: dist
$(KUPDIR)/dtc-$(dtc_version).tar.gz
endif
+tags: FORCE
+ rm -f tags
+ find . \( -name tests -type d -prune \) -o \
+ \( -name '*.[ch]' -type f -print \) -o \
+ \( -name '*.lex.c' -type f -prune \) -o \
+ \( -name '*.tab.*' -type f -prune \) | xargs ctags -a
+
#
# Testsuite rules
#
--
2.10.0.297.gf6727b0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-25 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-25 19:26 [PATCH] Makefile: Add tags rule Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).