From 2b646657ce8e8368887d6764cb514c2699df9f61 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 16 Dec 1998 12:34:57 +0000 Subject: [PATCH] * tags.am (ID): Uniquify list of sources. Report from Jim Meyering. --- ChangeLog | 5 +++++ TODO | 2 ++ lib/am/tags.am | 7 ++++++- tags.am | 7 ++++++- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4c0efd1..50b3eada 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 62469ccc..481659dd 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 aca128b9..38041e74 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 aca128b9..38041e74 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=; \ -- 2.43.5