From: Tom Tromey Date: Wed, 16 Dec 1998 12:35:00 +0000 (+0000) Subject: * tags.am (ID): Uniquify list of sources. Report from Jim X-Git-Tag: Release-1-4~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61f45418b0bc3471e0d87a59fcc780f5f4c0fb1c;p=thirdparty%2Fautomake.git * tags.am (ID): Uniquify list of sources. Report from Jim Meyering. --- diff --git a/ChangeLog b/ChangeLog index b4c0efd11..50b3eadab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-12-16 Tom Tromey + + * tags.am (ID): Uniquify list of sources. Report from Jim + Meyering. + 1998-12-11 Tom Tromey Bug report from Paul D. Smith: diff --git a/TODO b/TODO index 62469cccd..481659dd7 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ +* `distcheck' and `dist' should depend on `all' + * Document why putting @FOO@ in _SOURCES doesn't work. * Add code to generate foo-config script like gnome, gtk diff --git a/lib/am/tags.am b/lib/am/tags.am index aca128b91..38041e740 100644 --- a/lib/am/tags.am +++ b/lib/am/tags.am @@ -18,8 +18,13 @@ tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) +## Make sure the list of sources is unique. + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) + && mkid -f$$here/ID $$unique $(LISP) TAGS: @DIRS@ $(HEADERS) $(SOURCES) @CONFIG@ $(TAGS_DEPENDENCIES) $(LISP) tags=; \ diff --git a/tags.am b/tags.am index aca128b91..38041e740 100644 --- a/tags.am +++ b/tags.am @@ -18,8 +18,13 @@ tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) +## Make sure the list of sources is unique. + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) + && mkid -f$$here/ID $$unique $(LISP) TAGS: @DIRS@ $(HEADERS) $(SOURCES) @CONFIG@ $(TAGS_DEPENDENCIES) $(LISP) tags=; \