g++.1: Remove.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 12 Mar 2003 04:18:34 +0000 (04:18 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 12 Mar 2003 04:18:34 +0000 (04:18 +0000)
* g++.1: Remove.
* Make-lang.in (c++.generated-manpages): Build cp/g++.1.
(cp/g++.1): Build it from scratch in the build tree.
(c++.install-man): Depend on it.  Install it from the build tree.
(c++.mostlyclean): Clean it.

From-SVN: r64214

gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/cp/g++.1 [deleted file]

index 9dcd1c7..a8788f2 100644 (file)
@@ -1,3 +1,11 @@
+2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
+
+       * g++.1: Remove.
+       * Make-lang.in (c++.generated-manpages): Build cp/g++.1.
+       (cp/g++.1): Build it from scratch in the build tree.
+       (c++.install-man): Depend on it.  Install it from the build tree.
+       (c++.mostlyclean): Clean it.
+
 2003-03-11  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/9924
index 39e8415..1659dc1 100644 (file)
@@ -119,7 +119,7 @@ c++.tags: force
 
 c++.info: 
 c++.dvi:
-c++.generated-manpages:
+c++.generated-manpages: cp/g++.1
 
 #\f
 # Install hooks:
@@ -164,15 +164,23 @@ c++.install-common: installdirs
 
 c++.install-info: 
 
-c++.install-man: installdirs $(srcdir)/cp/g++.1
+cp/g++.1:
+       -rm -f $@
+       if [ "$(ALL)" = all.cross ]; then \
+         echo ".so man1/$(GCC_CROSS_NAME).1" > $@ ; \
+       else \
+         echo ".so man1/$(GCC_INSTALL_NAME).1" > $@ ; \
+       fi
+
+c++.install-man: installdirs cp/g++.1
        -if [ -f cc1plus$(exeext) ] ; then \
          if [ -f g++-cross$(exeext) ] ; then \
            rm -f $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
+           $(INSTALL_DATA) cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
            chmod a-x $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
          else \
            rm -f $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
+           $(INSTALL_DATA) cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
            chmod a-x $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
          fi; \
        else true; fi
@@ -190,6 +198,7 @@ c++.uninstall:
 # We just have to delete files specific to us.
 
 c++.mostlyclean:
+       -rm -f cp/g++.1
        -rm -f cp/*$(objext)
        -rm -f cp/*$(coverageexts)
 c++.clean:
diff --git a/gcc/cp/g++.1 b/gcc/cp/g++.1
deleted file mode 100644 (file)
index a5be7bc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.so man1/gcc.1