This is the mail archive of the gcc@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: java parser intentionally in builddir?



  In message <199810192115.OAA26403@kankakee.wrs.com>you write:
  > > Date: Fri, 16 Oct 1998 15:56:10 -0500
  > > From: Robert Lipe <robertl@dgii.com>
  > 
  > > The gcc/java Makefile.in is different than all the other languages
  > > in that a prebuilt parser isn't in the srcdir and it looks like it's
  > > intentionally build in the builddir.
  > 
  > I like the idea of unifying the two to get all the benefits of both
  > schemes, that way, we can forever get rid of the problem. Something like:
  > 
  > parse.c: $(srcdir)/parse.y
  > 	 if [ -r $(srcdir)/parse.c -a
  > 	    $(srcdir)/parse.c -nt $(srcdir)/parse.y  ]; then
  > 	    cp $(srcdir)/parse.c .
  > 	 else
  > 	    $(BISCON) ...
  > 	 fi
Or better yet, check for a reasonable version of bison and if found go ahead
and build the parser files in the build tree.

jeff


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