2002-12-18 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Dec 2002 00:50:33 +0000 (00:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Dec 2002 00:50:33 +0000 (00:50 +0000)
* Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
* Makefile.in: Regenerated.

* configure.in (build_prefix): New. Substitute.

ChangeLog
Makefile.in
Makefile.tpl
configure.in

index f713321c8c1ff636867ab7a9cd81a85850012fc1..0b07992533ed0945c93f654a7c11e8422ca20285 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-12-18  H.J. Lu <hjl@gnu.org>
+
+       * Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
+       * Makefile.in: Regenerated.
+
+       * configure.in (build_prefix): New. Substitute.
+
 2002-12-18  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * Makefile.tpl: Don't let real targets depend on phony targets.
index 400c875fcd5ab5553352ba68e57a9e50b1825b50..a2265d4b61d8a1ad55932f7b5f2059aa7addcdfe 100644 (file)
@@ -1234,7 +1234,7 @@ TAGS: do-TAGS
 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
 maybe-configure-build-libiberty:
 configure-build-libiberty: $(BUILD_SUBDIR)/libiberty/Makefile
-$(BUILD_SUBDIR)/libiberty/Makefile: config.status
+@build_prefix@$(BUILD_SUBDIR)/libiberty/Makefile: config.status
        @[ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
            r=`${PWD}`; export r; \
            s=`cd $(srcdir); ${PWD}`; export s; \
index 1a758859c4c39863349f28f56099c62bf55c02fb..d656c5065d5ad75389ac496569ce0adfe58a7efa 100644 (file)
@@ -791,7 +791,7 @@ TAGS: do-TAGS
 .PHONY: configure-build-[+module+] maybe-configure-build-[+module+]
 maybe-configure-build-[+module+]:
 configure-build-[+module+]: $(BUILD_SUBDIR)/[+module+]/Makefile
-$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
+@build_prefix@$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
        @[ -d $(BUILD_SUBDIR)/[+module+] ] || mkdir $(BUILD_SUBDIR)/[+module+];\
            r=`${PWD}`; export r; \
            s=`cd $(srcdir); ${PWD}`; export s; \
index f16fe5baacbd4662a24c9cdede38dc51efa5e323..fb379fcfda66687cc702c208868a3bb6e1452233 100644 (file)
@@ -168,6 +168,10 @@ if test x"${build_alias}" != x"${host}" ; then
   fi
 fi
 
+if test x"${target_subdir}" = x"${build_subdir}" ; then
+  build_prefix=build-
+fi
+
 # Skipdirs are removed silently.
 skipdirs=
 # Noconfigdirs are removed loudly.
@@ -1729,6 +1733,7 @@ s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}%
 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}%
 s%@target_subdir@%${target_subdir}%
 s%@build_subdir@%${build_subdir}%
+s%@build_prefix@%${build_prefix}%
 s%@build_configargs@%${buildargs}%
 s%@gxx_include_dir@%${gxx_include_dir}%
 s%@host_configargs@%${hostargs}%