From 205cba53499cb2dcee8babda749063e4672f846d Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Tue, 2 Dec 1997 17:53:36 +0000 Subject: [PATCH] Makefile.in (INSTALL_TARGET_CROSS): Define. * Makefile.in (INSTALL_TARGET_CROSS): Define. (install-cross, install-gcc-cross): New targets. From-SVN: r16888 --- ChangeLog | 5 +++++ Makefile.in | 22 +++++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f81e867079b..a1b673f3166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 2 10:55:34 1997 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (INSTALL_TARGET_CROSS): Define. + (install-cross, install-gcc-cross): New targets. + Thu Nov 27 01:31:30 1997 Jeffrey A Law (law@cygnus.com) * Makefile.in (INSTALL_TARGET): Do install-gcc first. diff --git a/Makefile.in b/Makefile.in index fccbb0ec91c..1caa3e13983 100644 --- a/Makefile.in +++ b/Makefile.in @@ -181,6 +181,12 @@ INSTALL_TARGET = installdirs \ $(INSTALL_X11_MODULES) \ $(INSTALL_DOSREL) +INSTALL_TARGET_CROSS = installdirs \ + install-gcc-cross \ + $(INSTALL_MODULES) \ + $(INSTALL_TARGET_MODULES) \ + $(INSTALL_X11_MODULES) \ + $(INSTALL_DOSREL) CC_FOR_TARGET = ` \ if [ -f $$r/gcc/xgcc ] ; then \ @@ -947,8 +953,9 @@ check: $(CHECK_MODULES) \ # Installation targets. -.PHONY: install uninstall source-vault binary-vault vault-install +.PHONY: install install-cross uninstall source-vault binary-vault vault-install install: $(INSTALL_TARGET) +install-cross: $(INSTALL_TARGET_CROSS) uninstall: @echo "the uninstall target is not supported in this tree" @@ -1333,12 +1340,21 @@ install-gcc: r=`pwd`; export r; \ s=`cd $(srcdir); pwd`; export s; \ $(SET_LIB_PATH) \ - (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \ else \ true; \ fi - +.PHONY: install-gcc-cross +install-gcc-cross: + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ + else \ + true; \ + fi # EXPERIMENTAL STUFF # This rule is used to install the modules which use FLAGS_TO_PASS. # To build a target install-X means to cd to X and make install. -- 2.30.2