Dependancy issue the Lex / Yacc / Automake

Michael Still mikal at
Thu Mar 21 22:27:07 EST 2002

On Thu, 21 Mar 2002, Martijn van Oosterhout wrote:

> On Thu, Mar 21, 2002 at 02:19:17PM +1100, Michael Still wrote:
> > On Wed, 20 Mar 2002, Martin Schwenke wrote:
> > > It isn't something as simple as having a newer lexer.c than
> > > lexer.{y,l}, is it?
> >
> > This certainly stops flex from running at the start of the compile.
> >
> > So, I have two further questions:
> >  - how do I clean lexer.c so that flex can run at the start (but perhaps
> > only when in Maintainer mode or something like that so that users don't
> > have to have flex and bison).
> There should be a place for this in the Makefile somewhere. This file needs
> to be deleted whenever there is a make clean.
> >  - how do I get bison to run before flex? Bison builds, which I
> > need to include in lexer.l so I have all the tokens defined.

For reasons that best escape me (thanks to Ben Elliston for pointing this
out), the lexer.y file should be named parser.y... It all then magically

Thanks for all your help folk.



Michael Still (mikal at     UMT+11hrs

More information about the linux mailing list