automake-patches
[Top][All Lists]
Advanced

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

Re: Automake 1.5 tags rule


From: Alexandre Duret-Lutz
Subject: Re: Automake 1.5 tags rule
Date: 25 Nov 2001 19:47:45 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Christian" == Christian Cornelssen <address@hidden> writes:

[...]

 Christian> I suggest not to pass the template header file names directly to
 Christian> "etags", and including them in the shell variable `list' instead.
 Christian> $$list is then filtered to $$unique, whereby a VPATH search is
 Christian> emulated.  Thus, we do the right thing almost automatically.

 Christian> A similar method may be applied to the $(LISP) files.

[...]

Index: ChangeLog
--- ChangeLog
+++ ChangeLog
@@ -1,1 +1,7 @@
+2001-11-25  Alexandre Duret-Lutz  <address@hidden>
+
+       * lib/am/tags.am (TAGS): Search %CONFIG% and $(LISP) files
+       in $(srcdir), like other TAGS dependencies.
+       Suggested by Christian Cornelssen.
+

Index: lib/am/tags.am
===================================================================
RCS file: /home/adl/CVSROOT/automake-20011123-1047/lib/am/tags.am,v
retrieving revision 1.1
diff -u -r1.1 tags.am
--- lib/am/tags.am 23 Nov 2001 09:48:00 -0000 1.1
+++ lib/am/tags.am 25 Nov 2001 16:07:23 -0000
@@ -54,7 +54,7 @@
 ?SUBDIRS?        fi; \
 ?SUBDIRS?      done; \
 ## Make sure the list of sources is unique.
-       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       list='$(SOURCES) $(HEADERS) %CONFIG% $(LISP) $(TAGS_FILES)'; \
        unique=`for i in $$list; do \
 ## Handle VPATH correctly.
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
@@ -62,8 +62,8 @@
          $(AWK) '    { files[$$0] = 1; } \
               END { for (i in files) print i; }'`; \
 ## Make sure we have something to run etags on.
-       test -z "$(ETAGS_ARGS)%CONFIG%$$unique$(LISP)$$tags" \
-         || etags $(ETAGS_ARGS) $$tags %CONFIG% $$unique $(LISP)
+       test -z "$(ETAGS_ARGS)$$tags$$unique" \
+         || etags $(ETAGS_ARGS) $$tags $$unique
 
 
 ## --------------- ##

-- 
Alexandre Duret-Lutz



reply via email to

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