]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.texi (Tags): Document GTAGS target.
authorTom Tromey <tromey@redhat.com>
Fri, 22 Dec 2000 06:05:51 +0000 (06:05 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 22 Dec 2000 06:05:51 +0000 (06:05 +0000)
* tags.am (GTAGS): New target.

ChangeLog
automake.texi
lib/am/tags.am
stamp-vti
tags.am
version.texi

index 8e9c627bb71153df69f101a01c781b74b987c6e1..b85ed76b3c5a9411ae16634bc81273e17b04e923 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-12-21  Tom Tromey  <tromey@redhat.com>
 
+       * automake.texi (Tags): Document GTAGS target.
+       * tags.am (GTAGS): New target.
+
        * automake.in (libtoolize_files): Removed ltconfig.
        (initialize_global_constants): Added ltconfig to common_files.
 
index c099ae8bdcdb87e4bbd5996ecba7fa28011db3e8..5d2d36bf3e53cde03942ffe9f1579ac757015b87 100644 (file)
@@ -3228,6 +3228,10 @@ Automake will also generate an @code{ID} target which will run
 directory-by-directory basis.
 @trindex id
 
+Automake also supports the GNU Global Tags program.  The @code{GTAGS}
+target runs Global Tags automatically and puts the result in the top
+build directory.
+
 
 @node Suffixes,  , Tags, Miscellaneous
 @section Handling new file extensions
index d7b60d479e911701ae31f997dd3b8432b6a6cfe9..3bc80e8a44e8ee1dbad93f38ff9e4dc315deb636 100644 (file)
@@ -50,3 +50,9 @@ SUBDIRS       done; \
 ## Make sure we have something to run etags on.
        test -z "$(ETAGS_ARGS)@CONFIG@$$unique$(LISP)$$tags" \
          || etags $(ETAGS_ARGS) $$tags @CONFIG@ $$unique $(LISP)
+
+## Support `Global' tags.
+GTAGS:
+       here=`CDPATH=: && cd $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $$here
index 3fe1fecef5dc3fa800f48737cb08b032c997eda0..ba02ac6dbcf4407ca565239741cec590bee8cc04 100644 (file)
--- a/stamp-vti
+++ b/stamp-vti
@@ -1,4 +1,4 @@
-@set UPDATED 20 December 2000
+@set UPDATED 21 December 2000
 @set UPDATED-MONTH December 2000
 @set EDITION 1.4a
 @set VERSION 1.4a
diff --git a/tags.am b/tags.am
index d7b60d479e911701ae31f997dd3b8432b6a6cfe9..3bc80e8a44e8ee1dbad93f38ff9e4dc315deb636 100644 (file)
--- a/tags.am
+++ b/tags.am
@@ -50,3 +50,9 @@ SUBDIRS       done; \
 ## Make sure we have something to run etags on.
        test -z "$(ETAGS_ARGS)@CONFIG@$$unique$(LISP)$$tags" \
          || etags $(ETAGS_ARGS) $$tags @CONFIG@ $$unique $(LISP)
+
+## Support `Global' tags.
+GTAGS:
+       here=`CDPATH=: && cd $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $$here
index 3fe1fecef5dc3fa800f48737cb08b032c997eda0..ba02ac6dbcf4407ca565239741cec590bee8cc04 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 20 December 2000
+@set UPDATED 21 December 2000
 @set UPDATED-MONTH December 2000
 @set EDITION 1.4a
 @set VERSION 1.4a