--- linux-2.6.18/Makefile.orig 2006-09-23 09:44:20.000000000 -0400 +++ linux-2.6.18/Makefile 2006-09-23 09:46:39.000000000 -0400 @@ -1297,11 +1297,10 @@ quiet_cmd_tags = MAKE $@ define cmd_tags rm -f $@; \ - CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \ - echo "-I __initdata,__exitdata,__acquires,__releases \ - -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ - --extra=+f --c-kinds=+px"`; \ - $(all-sources) | xargs ctags $$CTAGSF -a + ignorefile=../ctags-ignore ; sortprog=sort-tags ; sort=cat ;\ + [ -f $$ignorefile ] && ignore=-I$$ignorefile ;\ + hash $$sortprog 2>/dev/null && sort=$$sortprog ;\ + $(all-sources) | ctags $$ignore -L - -f - | $$sort > tags endef tags: FORCE