[PATCH] TAGS target for Makefile

Paul Rusty Russell (Paul.Russell@linuxcare.com.au)
Wed, 24 Nov 1999 10:14:34 +1100


Patch against 2.2 and 2.3 to make TAGS file, with correct
architecture. Consider this my weekly devotional offering to the
Church of Emacs.

Rusty.
--- linux/Makefile.~1~ Wed Nov 24 09:52:09 1999
+++ linux/Makefile Wed Nov 24 10:09:48 1999
@@ -303,6 +303,11 @@
fs lib mm ipc kernel drivers net: dummy
$(MAKE) $(subst $@, _dir_$@, $@)

+TAGS: dummy
+ etags `find include/asm-$(ARCH) -name '*.h'`
+ for d in `ls include/. | egrep -v '^(asm|config)'`; do find include/$$d -name '*.h' | xargs etags -a; done
+ find $(SUBDIRS) init -name '*.c' | xargs etags -a
+
MODFLAGS += -DMODULE
ifdef CONFIG_MODULES
ifdef CONFIG_MODVERSIONS

--
Hacking time.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/