Skip to contentSkip to conversation

Makefile: Add tags rule

PATCH Superseded Stephen Boyd 1 participant 1 message Jan 25, 2017 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Add tags rule

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.

---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)
Makefile +7 -0
index 32dcfcf8e203..316d6329cd4b 100644
@@ -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
 #
Signature · 1 line
2.10.0.297.gf6727b0