(TAGS): Don't fail if a subdir doesn't have TAGS target.
authorTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 19:53:27 +0000 (19:53 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 19:53:27 +0000 (19:53 +0000)
lib/am/subdirs.am
subdirs.am

index b42d346..6eb0379 100644 (file)
@@ -7,15 +7,16 @@
 
 @SET_MAKE@
 
-all install install-info uninstall check tags TAGS info dvi::
+all install install-info uninstall check info dvi::
        for subdir in $(SUBDIRS); do \
          echo making $@ in $$subdir ; \
          (cd $$subdir; $(MAKE) $@); \
        done
 
-TAGS::
+tags TAGS::
        tags=;                                  \
        for subdir in $(SUBDIRS); do            \
+         (cd $$subdir && $(MAKE) TAGS);        \
          if test -f $subdir/TAGS; then         \
            tags="$tags -i $subdir/TAGS";       \
          fi;                                   \
index b42d346..6eb0379 100644 (file)
@@ -7,15 +7,16 @@
 
 @SET_MAKE@
 
-all install install-info uninstall check tags TAGS info dvi::
+all install install-info uninstall check info dvi::
        for subdir in $(SUBDIRS); do \
          echo making $@ in $$subdir ; \
          (cd $$subdir; $(MAKE) $@); \
        done
 
-TAGS::
+tags TAGS::
        tags=;                                  \
        for subdir in $(SUBDIRS); do            \
+         (cd $$subdir && $(MAKE) TAGS);        \
          if test -f $subdir/TAGS; then         \
            tags="$tags -i $subdir/TAGS";       \
          fi;                                   \