]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS.
authorAlexandre Oliva <aoliva@cygnus.com>
Sat, 29 Apr 2000 14:25:12 +0000 (14:25 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 29 Apr 2000 14:25:12 +0000 (14:25 +0000)
* Makefile.in (maintainer-clean-subdir): Fix handling of empty
SUBDIRS.

From-SVN: r33533

libiberty/ChangeLog
libiberty/Makefile.in

index 994511e76515bad77eb2e8634fe1f303176a4c39..77cbf4faa0145345687a5dd11a3a975a58ada5e9 100644 (file)
@@ -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>
 
index acb601193355749bd7f6beea5d3cc8b73def1307..8b4bcab5ade719326f82d8fcf3c345f0fa5e597a 100644 (file)
@@ -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