+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
c++.info:
c++.dvi:
-c++.generated-manpages:
+c++.generated-manpages: cp/g++.1
#\f
# Install hooks:
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
# 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: