From 04dbaf1f25578341e1f4de0b5e014677eb2c4fef Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 18 Nov 1994 01:32:08 +0000 Subject: [PATCH] (c++.install-man): Use program_transform_name on g++.1. (c++.uninstall): Likewise. From-SVN: r8502 --- gcc/cp/Make-lang.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index e47bcf480da..a9c3555f98e 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -117,8 +117,15 @@ c++.install-info: c++.install-man: $(srcdir)/cp/g++.1 -if [ -f cc1plus ] ; then \ - $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(mandir)/g++$(manext) ; \ - chmod a-x $(mandir)/g++$(manext) ; \ + if [ -f g++-cross ] ; then \ + rm -f $(mandir)/$(GXX_CROSS_NAME)$(manext); \ + $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(mandir)/$(GXX_CROSS_NAME)$(manext); \ + chmod a-x $(mandir)/$(GXX_CROSS_NAME)$(manext); \ + else \ + rm -f $(mandir)/$(GXX_INSTALL_NAME)$(manext); \ + $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(mandir)/$(GXX_INSTALL_NAME)$(manext); \ + chmod a-x $(mandir)/$(GXX_INSTALL_NAME)$(manext); \ + fi; \ else true; fi c++.uninstall: @@ -126,7 +133,8 @@ c++.uninstall: -rm -rf $(bindir)/$(CXX_CROSS_NAME) -rm -rf $(bindir)/$(GXX_INSTALL_NAME) -rm -rf $(bindir)/$(GXX_CROSS_NAME) - -rm -rf $(mandir)/g++$(manext) + -rm -rf $(mandir)/$(GXX_INSTALL_NAME)$(manext) + -rm -rf $(mandir)/$(GXX_CROSS_NAME)$(manext) # Clean hooks: # A lot of the ancillary files are deleted by the main makefile.