public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Don't hardcode the makefile name in config-ml.in
@ 2007-11-19 10:24 Thiemo Seufer
  2007-11-19 10:49 ` Paolo Bonzini
  2007-11-26  6:44 ` Hans-Peter Nilsson
  0 siblings, 2 replies; 8+ messages in thread
From: Thiemo Seufer @ 2007-11-19 10:24 UTC (permalink / raw)
  To: gcc-patches

Hello All,

the appended patch un-hardcodes the makefile name in config-ml.in.
(Overriding the name on invocation is supposed to be possible,
currently this changes only some of the uses in config-ml.in.)


Thiemo


2007-11-19  Thiemo Seufer  <ths@mips.com>

	* config-ml.in: Don't hardcode the Makefile name.

Index: config-ml.in
===================================================================
--- config-ml.in.orig	2007-11-18 01:30:21.000000000 +0000
+++ config-ml.in	2007-11-18 01:31:57.000000000 +0000
@@ -586,8 +586,8 @@
 	  true; \
 	else \
 	  lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
-	  for dir in Makefile $(MULTIDIRS); do \
-	    if [ -f ../$${dir}/$${lib}/Makefile ]; then \
+	  for dir in ${Makefile} $(MULTIDIRS); do \
+	    if [ -f ../$${dir}/$${lib}/${Makefile} ]; then \
 	      if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
 	      then true; \
 	      else exit 1; \
@@ -605,7 +605,7 @@
 fi # ${ml_toplevel_p} = yes
 
 if [ "${ml_verbose}" = --verbose ]; then
-  echo "Adding multilib support to Makefile in ${ml_realsrcdir}"
+  echo "Adding multilib support to ${Makefile} in ${ml_realsrcdir}"
   if [ "${ml_toplevel_p}" = yes ]; then
     echo "multidirs=${multidirs}"
   fi
@@ -740,7 +740,7 @@
       fi
       (cd ${ml_dir}/${ml_libdir};
        ../${dotdot}${ml_unsubdir}symlink-tree ../${dotdot}${ml_unsubdir}${ml_libdir} "")
-      if [ -f ${ml_dir}/${ml_libdir}/Makefile ]; then
+      if [ -f ${ml_dir}/${ml_libdir}/${Makefile} ]; then
 	if [ x"${MAKE}" = x ]; then
 	  (cd ${ml_dir}/${ml_libdir}; make distclean)
 	else

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-11-26 12:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-19 10:24 [PATCH] Don't hardcode the makefile name in config-ml.in Thiemo Seufer
2007-11-19 10:49 ` Paolo Bonzini
2007-11-26  6:44 ` Hans-Peter Nilsson
2007-11-26 10:48   ` Ralf Wildenhues
2007-11-26 14:17     ` Paolo Bonzini
2007-11-26 14:47       ` Andreas Schwab
2007-11-26 15:04       ` Ralf Wildenhues
2007-11-26 15:20         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).