diff options
author | Tom Tromey <tromey@redhat.com> | 1998-12-16 12:35:00 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1998-12-16 12:35:00 +0000 |
commit | 61f45418b0bc3471e0d87a59fcc780f5f4c0fb1c (patch) | |
tree | eda914dec533b6272948e5f77d671c31594e6526 /lib/am/tags.am | |
parent | 52640f6d2620cba641292448120e69e0f83b8302 (diff) | |
download | automake-61f45418b0bc3471e0d87a59fcc780f5f4c0fb1c.tar.gz |
* tags.am (ID): Uniquify list of sources. Report from Jim
Meyering.
Diffstat (limited to 'lib/am/tags.am')
-rw-r--r-- | lib/am/tags.am | 7 |
1 files changed, 6 insertions, 1 deletions
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=; \ |