]> code.delx.au - gnu-emacs/commitdiff
(TAGS): Split off included tags file lisp/TAGS.
authorRichard M. Stallman <rms@gnu.org>
Wed, 20 Apr 1994 19:23:04 +0000 (19:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 20 Apr 1994 19:23:04 +0000 (19:23 +0000)
(../lisp/TAGS): New target uses recursive make.
(ctagsfiles, lisptagsfiles): New variables.

src/Makefile.in

index 218e053689ec4005ba06710b8ee7485e32089808..613d5ae80a26cd4e0daca5d15c4306461b22705a 100644 (file)
@@ -860,8 +860,14 @@ unlock:
 relock:
        chmod -w $(SOURCES)
        chmod +w paths.h
-tagsfiles = [a-zA-Z]*.h [a-zA-Z]*.c ../lisp/[a-zA-Z]*.el ../lisp/term/[a-zA-Z]*.el
-TAGS: $(tagsfiles)
-       etags $(tagsfiles)
-tags: TAGS
+
+# Arrange to make a tags table in ../lisp, and another in this dir
+# which includes ../lisp/TAGS by reference.
+ctagsfiles = [a-zA-Z]*.h [a-zA-Z]*.c
+lisptagsfiles = ../lisp/[a-zA-Z]*.el ../lisp/term/[a-zA-Z]*.el
+TAGS: $(ctagsfiles)
+       ../lib-src/etags --include=../lisp/TAGS $(ctagsfiles)
+../lisp/TAGS: $(lisptagsfiles)
+       cd ../lisp; $(MAKE) TAGS
+tags: TAGS ../lisp/TAGS
 .PHONY: tags