* lib/am/tags.am (ETAGS): New macro.
(ETAGSFLAGS): Likewise.
(TAGS): Use them.
+2002-01-06 Tom Tromey <tromey@redhat.com>
+
+ * automake.texi (Tags): Document new variables.
+ * lib/am/tags.am (ETAGS): New macro.
+ (ETAGSFLAGS): Likewise.
+ (TAGS): Use them.
+
2002-01-04 Tom Tromey <tromey@redhat.com>
* configure.in (ACLOCAL): Set perllibdir. From Nicolas Joly.
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
+@file{Makefile.am}.
@vindex ETAGS_ARGS
+@vindex ETAGSFLAGS
+@vindex AM_ETAGSFLAGS
Here is how Automake generates tags for its source, and for nodes in its
Texinfo file:
## TAGS. ##
## ------ ##
+ETAGS = etags
+ETAGSFLAGS =
+
TAGS: %DIRS% $(HEADERS) $(SOURCES) %CONFIG% $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
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
## --------------- ##
-@set UPDATED 2 January 2002
+@set UPDATED 6 January 2002
@set UPDATED-MONTH January 2002
@set EDITION 1.5c
@set VERSION 1.5c
-@set UPDATED 2 January 2002
+@set UPDATED 6 January 2002
@set UPDATED-MONTH January 2002
@set EDITION 1.5c
@set VERSION 1.5c