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]

Re: has makeinfo gone nuts?


That sounded like approval, so I just committed this.

        * Makefile.in (MAKEINFO): Use makeinfo built from sibling
        tree when available.

>   > I'm guessing that's indeed the case.   From the toplevel objdir, a 'make'
>   > will DTRT.   It's only when done from within gcc/ that it uses the wrong
>   > one.   Perhaps this patch will inspire someone:
> The patch seems reasonable to me.  It's similar to how we handle other
> host side programs.

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.234
diff -u -p -r1.234 Makefile.in
--- Makefile.in 1999/03/02 00:59:28     1.234
+++ Makefile.in 1999/03/02 15:36:22
@@ -99,7 +99,9 @@ LN_S=@LN_S@
 # These permit overriding just for certain files.
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
-MAKEINFO = makeinfo
+MAKEINFO = `if [ -f $(objdir)/../texinfo/makeinfo/Makefile ] ; \
+       then echo $(objdir)/../texinfo/makeinfo/makeinfo ; \
+       else echo makeinfo ; fi`
 MAKEINFOFLAGS =
 TEXI2DVI = texi2dvi
 # For GNUmake: let us decide what gets passed to recursive makes.



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