summaryrefslogtreecommitdiff
path: root/tags.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1996-05-17 15:18:19 +0000
committerTom Tromey <tromey@redhat.com>1996-05-17 15:18:19 +0000
commit7730153fae46f2b691f5121d2717badeebe813b0 (patch)
tree0754b99ff8d0d3cf1682684218592c227bad7b46 /tags.am
parentf478789bd325a28ba5880b9e320bfd7c7c511e96 (diff)
downloadautomake-7730153fae46f2b691f5121d2717badeebe813b0.tar.gz
Tags fixups
Diffstat (limited to 'tags.am')
-rw-r--r--tags.am21
1 files changed, 13 insertions, 8 deletions
diff --git a/tags.am b/tags.am
index f08e724e0..68e2bd5df 100644
--- a/tags.am
+++ b/tags.am
@@ -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)