From 2bc7e623e628121a76ecedbbfaabaa540a69c054 Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Sun, 6 Jul 2008 09:14:57 -0400 Subject: [PATCH] make tags Add some nice local modifications to make tags. --- Makefile | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6315424..49b11e2 100644 --- a/Makefile +++ b/Makefile @@ -1415,11 +1415,14 @@ endef define xtags if $1 --version 2>&1 | grep -iq exuberant; then \ + ignore= ;\ + ignorefile=../ctags-ignore ;\ + [ -f $$ignorefile ] && ignore=-I$$ignorefile ;\ $(all-sources) | xargs $1 -a \ -I __initdata,__exitdata,__acquires,__releases \ -I __read_mostly,____cacheline_aligned,____cacheline_aligned_in_smp,____cacheline_internodealigned_in_smp \ - -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ - --extra=+f --c-kinds=+px \ + $$ignore \ + --extra=+f \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/'; \ $(all-kconfigs) | xargs $1 -a \ --langdef=kconfig \ @@ -1429,6 +1432,9 @@ define xtags --langdef=dotconfig \ --language-force=dotconfig \ --regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'; \ + if hash sort-tags 2>/dev/null ; then \ + sort-tags < tags > tags2 ; mv tags2 tags ;\ + fi ;\ elif $1 --version 2>&1 | grep -iq emacs; then \ $(all-sources) | xargs $1 -a; \ $(all-kconfigs) | xargs $1 -a \ -- 1.5.5.1