Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS.

* Makefile.in (maintainer-clean-subdir): Fix handling of empty
SUBDIRS.

From-SVN: r33533
This commit is contained in:
Alexandre Oliva 2000-04-29 14:25:12 +00:00 committed by Alexandre Oliva
parent 9fe4928b88
commit 3b94497c20
2 changed files with 8 additions and 3 deletions

View 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>

View 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