automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: FYI: use ETAGS


From: Tom Tromey
Subject: Patch: FYI: use ETAGS
Date: 06 Jan 2002 13:35:53 -0700

This sets ETAGS and allows the use of ETAGSFLAGS.
I didn't bother with id/gtags since they aren't used as frequently (imho).

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>

        * automake.texi (Tags): Document new variables.
        * lib/am/tags.am (ETAGS): New macro.
        (ETAGSFLAGS): Likewise.
        (TAGS): Use them.

Index: automake.texi
===================================================================
RCS file: /cvs/automake/automake/automake.texi,v
retrieving revision 1.257
diff -u -r1.257 automake.texi
--- automake.texi 2002/01/02 19:07:31 1.257
+++ automake.texi 2002/01/06 20:22:21
@@ -4021,8 +4021,12 @@
 The @code{tags} target will also be generated if the variable
 @code{ETAGS_ARGS} is defined.  This variable is intended for use in
 directories which contain taggable source that @code{etags} does not
-understand.
+understand.  The user can use the @code{ETAGSFLAGS} to pass additional
+flags to @code{etags}; @code{AM_ETAGSFLAGS} is also available for use in
address@hidden
 @vindex ETAGS_ARGS
address@hidden ETAGSFLAGS
address@hidden AM_ETAGSFLAGS
 
 Here is how Automake generates tags for its source, and for nodes in its
 Texinfo file:
Index: stamp-vti
===================================================================
RCS file: /cvs/automake/automake/stamp-vti,v
retrieving revision 1.154
diff -u -r1.154 stamp-vti
--- stamp-vti 2002/01/04 18:47:34 1.154
+++ stamp-vti 2002/01/06 20:22:21
@@ -1,4 +1,4 @@
address@hidden UPDATED 2 January 2002
address@hidden UPDATED 6 January 2002
 @set UPDATED-MONTH January 2002
 @set EDITION 1.5c
 @set VERSION 1.5c
Index: version.texi
===================================================================
RCS file: /cvs/automake/automake/version.texi,v
retrieving revision 1.227
diff -u -r1.227 version.texi
--- version.texi 2002/01/04 18:47:34 1.227
+++ version.texi 2002/01/06 20:22:21
@@ -1,4 +1,4 @@
address@hidden UPDATED 2 January 2002
address@hidden UPDATED 6 January 2002
 @set UPDATED-MONTH January 2002
 @set EDITION 1.5c
 @set VERSION 1.5c
Index: lib/am/tags.am
===================================================================
RCS file: /cvs/automake/automake/lib/am/tags.am,v
retrieving revision 1.36
diff -u -r1.36 tags.am
--- lib/am/tags.am 2001/12/05 17:15:43 1.36
+++ lib/am/tags.am 2002/01/06 20:22:21
@@ -41,6 +41,9 @@
 ## TAGS.  ##
 ## ------ ##
 
+ETAGS = etags
+ETAGSFLAGS =
+
 TAGS: %DIRS% $(HEADERS) $(SOURCES) %CONFIG% $(TAGS_DEPENDENCIES) \
                $(TAGS_FILES) $(LISP)
        tags=; \
@@ -63,7 +66,8 @@
               END { for (i in files) print i; }'`; \
 ## Make sure we have something to run etags on.
        test -z "$(ETAGS_ARGS)$$tags$$unique" \
-         || etags $(ETAGS_ARGS) $$tags $$unique
+         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+            $$tags $$unique
 
 
 ## --------------- ##



reply via email to

[Prev in Thread] Current Thread [Next in Thread]