aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@cygnus.com>2000-04-29 14:25:12 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-04-29 14:25:12 +0000
commit3b94497c2038ecf899d22902cecc0ada92614fd2 (patch)
tree2464961e3c898ce6e7d03a19e7e7ff4dca14ce93
parent9fe4928b88485c23fbe9b4e1cbef1dc31391d4f4 (diff)
downloadgcc-3b94497c2038ecf899d22902cecc0ada92614fd2.zip
gcc-3b94497c2038ecf899d22902cecc0ada92614fd2.tar.gz
gcc-3b94497c2038ecf899d22902cecc0ada92614fd2.tar.bz2
Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS.
* Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS. From-SVN: r33533
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/Makefile.in6
2 files changed, 8 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 994511e..77cbf4f 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
+
+ * Makefile.in (maintainer-clean-subdir): Fix handling of empty
+ SUBDIRS.
+
2000-04-28 Kenneth Block <block@zk3.dec.com>
Jason Merrill <jason@casey.cygnus.com>
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index acb6011..8b4bcab 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -1,6 +1,6 @@
#
# Makefile
-# Copyright (C) 1990, 91, 91 - 99, 2000
+# Copyright (C) 1990, 91-99, 2000
# Free Software Foundation
#
# This file is part of the libiberty library.
@@ -244,9 +244,9 @@ all-subdir check-subdir installcheck-subdir info-subdir \
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
maintainer-clean-subdir:
- @if test "x$(SUBDIRS)" = x; then exit 0; fi; \
+ @subdirs='$(SUBDIRS)'; \
target=`echo $@ | sed -e 's/-subdir//'`; \
- for dir in $(SUBDIRS) ; do \
+ for dir in $$subdirs ; do \
cd $$dir && $(MAKE) $$target; \
done