changeset 6988:674dceb3bb4f

(TAGS): Split off included tags file lisp/TAGS. (../lisp/TAGS): New target uses recursive make. (ctagsfiles, lisptagsfiles): New variables.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Apr 1994 19:23:04 +0000
parents 62cdd56aa99f
children 3723e842825c
files src/Makefile.in
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.in	Wed Apr 20 10:52:23 1994 +0000
+++ b/src/Makefile.in	Wed Apr 20 19:23:04 1994 +0000
@@ -860,8 +860,14 @@
 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