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

SUBDIRS.
This commit is contained in:
Alexandre Oliva 2000-05-26 12:50:58 +00:00
parent b6cdd0fd9a
commit 010c70e10f
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-05-26 Alexandre Oliva <aoliva@cygnus.com>
* Makefile.in (maintainer-clean-subdir): Fix handling of empty
SUBDIRS.
2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* Makefile.in (*-subdir): Revamp slightly to avoid losing on

View file

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