This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libiberty's *-clean-subdir rules are broken


I'm checking this in, under the obviously correct rule.  It had been
checked into the GCC tree almost a month ago, but I forgot to install
it in Sourceware's src repo too.

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/src/src/libiberty/Makefile.in,v
retrieving revision 1.5
diff -u -r1.5 Makefile.in
--- libiberty/Makefile.in	2000/04/21 22:19:43	1.5
+++ libiberty/Makefile.in	2000/05/26 12:47:07
@@ -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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]