This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Yet another try at fixing info-building


This patch makes sure that the top-level Makefile honors BUILD_INFO.

(It looks like the Ada and Treelang Make-lang.in files have never
honored that variable, so I suspect that trying to build Ada and/or
Treelang without a satisfactory "makeinfo" has never worked.)

Tested with both a good makeinfo and with no makeinfo on
i686-pc-linux-gnu, applied on the mainline.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2003-10-21  Mark Mitchell  <mark@codesourcery.com>

	* Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1179
diff -c -5 -p -r1.1179 Makefile.in
*** Makefile.in	21 Oct 2003 15:18:25 -0000	1.1179
--- Makefile.in	21 Oct 2003 17:33:59 -0000
*************** $(docobjdir)/gcc.info gcc.dvi: $(TEXI_GC
*** 2653,2664 ****
  $(docobjdir)/gccint.info gccint.dvi: $(TEXI_GCCINT_FILES)
  $(docobjdir)/gccinstall.info gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
  $(docobjdir)/cppinternals.info cppinternals.dvi: $(TEXI_CPPINT_FILES)
  
  $(docobjdir)/%.info: $(docdir)/%.texi stmp-docobjdir
! 	$(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir) -I $(docdir)/include \
! 	  -o $@ $<
  
  dvi:: gcc.dvi gccint.dvi gccinstall.dvi cpp.dvi cppinternals.dvi
  
  %.dvi: $(docdir)/%.texi
  	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $<
--- 2653,2666 ----
  $(docobjdir)/gccint.info gccint.dvi: $(TEXI_GCCINT_FILES)
  $(docobjdir)/gccinstall.info gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
  $(docobjdir)/cppinternals.info cppinternals.dvi: $(TEXI_CPPINT_FILES)
  
  $(docobjdir)/%.info: $(docdir)/%.texi stmp-docobjdir
! 	if [ x$(BUILD_INFO) = xinfo ]; then \
! 		$(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir) \
! 			-I $(docdir)/include -o $@ $<; \
! 	fi
  
  dvi:: gcc.dvi gccint.dvi gccinstall.dvi cpp.dvi cppinternals.dvi
  
  %.dvi: $(docdir)/%.texi
  	$(TEXI2DVI) -I $(docdir) -I $(docdir)/include $<


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]