This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
FYI: libiberty's maintainer-clean breaks if SUBDIRS is empty
- To: gcc-patches at gcc dot gnu dot org
- Subject: FYI: libiberty's maintainer-clean breaks if SUBDIRS is empty
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 29 Apr 2000 11:23:38 -0300
- Organization: Cygnus Solutions, a Red Hat Company
I'm checking in this obvious (to me) bug-fix, so as to adopt the idiom
used in automake-generated rules.
Index: libiberty/ChangeLog
from Alexandre Oliva <aoliva@cygnus.com>
* Makefile.in (maintainer-clean-subdir): Fix handling of empty
SUBDIRS.
Index: libiberty/Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/Makefile.in,v
retrieving revision 1.41
diff -u -r1.41 Makefile.in
--- libiberty/Makefile.in 2000/04/24 00:51:08 1.41
+++ libiberty/Makefile.in 2000/04/29 14:20:43
@@ -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 @@
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
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me