From 694d0ef58c2552128931634444efd4ba43a6dfb9 Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Thu, 2 Nov 2006 18:22:11 -0500 Subject: [PATCH] make tags Add some nice local modifications to make tags. Signed-off-by: Pete Wyckoff --- Makefile | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8a3c271..9bd403c 100644 --- a/Makefile +++ b/Makefile @@ -1312,19 +1312,22 @@ endef define xtags if $1 --version 2>&1 | grep -iq exuberant; then \ + ignore="-I __initdata,__exitdata,__acquires,__releases" ;\ + ignore="$$ignore -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL" ;\ + ignorefile=../ctags-ignore ;\ + [ -f $$ignorefile ] && ignore=-I$$ignorefile ;\ $(all-sources) | xargs $1 -a \ - -I __initdata,__exitdata,__acquires,__releases \ - -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 \ --language-force=kconfig \ - --regex-kconfig='/^[[:blank:]]*config[[:blank:]]+([[:alnum:]_]+)/\1/'; \ - $(all-defconfigs) | xargs -r $1 -a \ - --langdef=dotconfig \ - --language-force=dotconfig \ - --regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'; \ + --regex-kconfig='/^[[:blank:]]*config[[:blank:]]+([[:alnum:]_]+)/\1/' \ + --regex-kconfig='/^[[:blank:]]*config[[:blank:]]+([[:alnum:]_]+)/CONFIG_\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.2.2