(install-common): Install c++ and g++ only if cc1plus built.

From-SVN: r3150
This commit is contained in:
Jim Wilson 1993-01-07 14:40:34 -08:00
parent f45a4d6a54
commit 8f80892b66
1 changed files with 6 additions and 4 deletions

View File

@ -1513,10 +1513,12 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
chmod a-x $(libsubdir)/SYSCALLS.c.X; \
fi
-rm -f $(bindir)/c++
$(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++
-rm -f $(bindir)/g++
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++
-if [ -f cc1plus ] ; then \
rm -f $(bindir)/c++ ; \
$(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++ ; \
rm -f $(bindir)/g++ ; \
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++ ; \
fi
-rm -f $(libsubdir)/cpp
$(INSTALL_PROGRAM) cpp $(libsubdir)/cpp