[PATCH] Don't hardcode the makefile name in config-ml.in
Thiemo Seufer
ths@networkno.de
Mon Nov 19 10:24:00 GMT 2007
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
More information about the Gcc-patches
mailing list