diff options
author | Tom Tromey <tromey@redhat.com> | 1996-05-17 15:18:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1996-05-17 15:18:19 +0000 |
commit | 7730153fae46f2b691f5121d2717badeebe813b0 (patch) | |
tree | 0754b99ff8d0d3cf1682684218592c227bad7b46 /tags.am | |
parent | f478789bd325a28ba5880b9e320bfd7c7c511e96 (diff) | |
download | automake-7730153fae46f2b691f5121d2717badeebe813b0.tar.gz |
Tags fixups
Diffstat (limited to 'tags.am')
-rw-r--r-- | tags.am | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -17,16 +17,21 @@ ## 02111-1307, USA. tags: TAGS -TAGS: - tags=; \ - here=`pwd`; \ - for subdir in $(SUBDIRS); do \ +tags-recursive: + list="$(SUBDIRS)"; for subdir in $$list; do \ ## Never fail here if a subdir fails. - (cd $$subdir && $(MAKE) TAGS); \ - test -f $$subdir/TAGS && { \ + (cd $$subdir && $(MAKE) tags); \ + done + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(CONFIG_HEADER) \ + $(TAGS_DEPENDENCIES) + tags=; \ + here=`pwd`; \ + for subdir in $(SUBDIRS); do \ + test -f $$subdir/TAGS && { \ tags="$$tags -i $$here/$$subdir/TAGS"; \ - } \ - done; \ + } \ + done; \ ## Make sure we have something to run etags on. test -z "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \ || etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS) |