Unreviewed patches for 3.2

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Fri Jun 7 05:39:00 GMT 2002


Joseph S. Myers writes:

> On Thu, 6 Jun 2002, Rainer Orth wrote:
> 
> > +gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
> > +	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include -o $@ $(docdir)/install.texi
> 
> This seems to break make dvi with relative path to srcdir (since using -o
> makes texi2dvi run in a temporary directory), so you need to create and
> use an absolute path using ${PWD} (as is done for front end manuals).

Oops, right.  The patch below was tested by configuring (C only) with
absolute and relative srcdir and cd gcc; make gccinstall.dvi.

Ok for mainline?

	Rainer


Fri Jun  7 14:31:15 2002  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* Makefile.in (gccinstall.dvi): Pass absolute pathnames to
	$(TEXI2DVI) -o.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.890
diff -u -p -r1.890 Makefile.in
--- Makefile.in	6 Jun 2002 20:03:02 -0000	1.890
+++ Makefile.in	7 Jun 2002 12:36:24 -0000
@@ -2431,7 +2431,8 @@ gccint.dvi: $(TEXI_GCCINT_FILES)
 	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/gccint.texi
 
 gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
-	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include -o $@ $(docdir)/install.texi
+	s=`cd $(srcdir); ${PWD}`; export s; \
+	$(TEXI2DVI) -I $$s/doc -I $$s/doc/include -o $@ $$s/doc/install.texi
 
 cppinternals.dvi: $(TEXI_CPPINT_FILES)
 	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cppinternals.texi



More information about the Gcc-patches mailing list