--- linux-2.6.9-rc4/Makefile.orig 2004-10-11 17:03:11.985537492 -0400 +++ linux-2.6.9-rc4/Makefile 2004-10-11 17:06:09.001691469 -0400 @@ -1108,8 +1108,12 @@ define all-sources ( find $(srctree) $(RCS_FIND_IGNORE) \ - \( -name include -o -name arch \) -prune -o \ + \( -path $(srctree)/include -o -path $(srctree)/arch -o \ + -path $(srctree)/mm \) -prune -o \ -name '*.[chS]' -print; \ + find $(srctree)/mm $(RCS_FIND_IGNORE) \ + \( -name nommu.c \) -prune \ + -o -name '*.[chS]' -print; \ find $(srctree)/arch/$(ARCH) $(RCS_FIND_IGNORE) \ -name '*.[chS]' -print; \ find $(srctree)/security/selinux/include $(RCS_FIND_IGNORE) \ @@ -1141,8 +1145,10 @@ quiet_cmd_tags = MAKE $@ define cmd_tags rm -f $@; \ - CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \ - $(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