* Makefile.in (TAGS): Produce a single tags file for all of Guile.
authorJim Blandy <jimb@red-bean.com>
Tue, 3 Sep 1996 05:07:54 +0000 (05:07 +0000)
committerJim Blandy <jimb@red-bean.com>
Tue, 3 Sep 1996 05:07:54 +0000 (05:07 +0000)
Makefile.in

index c5d7bde..1677718 100644 (file)
@@ -153,12 +153,14 @@ realclean:
 
 #`TAGS'
 #     Update a tags table for this program.
+#     We could allow each subdirectory to create its own TAGS file,
+#     and then use etags' --include option to incorporate them all by
+#     reference into a top-level TAGS file, but the --include option
+#     seems to be deprecated, and this works fine.
 TAGS:
-       for dir in ${subdirs}; do \
-               cd $$dir; \
-               ${MAKE} TAGS; \
-               cd ..  ;\
-       done
+       etags \
+         --regex='/SCM_PROC[^"]*"[^"]*"/' \
+         `find . -name '*.[ch]' -o -name '*.scm'`
 
 #`info'
 #     Generate any info files needed.  The best way to write the rules