($(RECURSIVE)): Print name of target actually used
authorTom Tromey <tromey@redhat.com>
Thu, 23 Nov 1995 03:07:53 +0000 (03:07 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 23 Nov 1995 03:07:53 +0000 (03:07 +0000)
lib/am/subdirs.am
subdirs.am

index eec4dc6..240bc80 100644 (file)
@@ -15,10 +15,11 @@ maintainer-clean-recursive
 
 $(RECURSIVE):
        for subdir in $(SUBDIRS); do            \
-         echo making $@ in $$subdir;           \
-         (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`) \
+         target=`echo $@ | sed s/-recursive//`; \
+         echo making $$target in $$subdir;     \
+         (cd $$subdir; $(MAKE) $$target)       \
           || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
-       done && test -z "$$fail"
+       done && test -z "$$fail"                \
 
 mostlyclean: mostlyclean-recursive mostlyclean-local
 
index eec4dc6..240bc80 100644 (file)
@@ -15,10 +15,11 @@ maintainer-clean-recursive
 
 $(RECURSIVE):
        for subdir in $(SUBDIRS); do            \
-         echo making $@ in $$subdir;           \
-         (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`) \
+         target=`echo $@ | sed s/-recursive//`; \
+         echo making $$target in $$subdir;     \
+         (cd $$subdir; $(MAKE) $$target)       \
           || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
-       done && test -z "$$fail"
+       done && test -z "$$fail"                \
 
 mostlyclean: mostlyclean-recursive mostlyclean-local