Dependancy issue the Lex / Yacc / Automake

Michael Still mikal at
Thu Mar 21 14:23:37 EST 2002

On Wed, 20 Mar 2002, Ben Elliston wrote:

> >>>>> "Martin" == Martin Schwenke <martin at> writes:
>   Mikal> noinst_PROGRAMS = lexer
>   Mikal> lexer_SOURCES = lexer.y lexer.l
>   Mikal> When I build the code, it would seem that it goes straight
>   Mikal> to a gcc ... -c lexer.c, instead of running lex and yacc
>   Mikal> first.
>   Martin> It isn't something as simple as having a newer lexer.c than
>   Martin> lexer.{y,l}, is it?
> I would also advise reviewing the generated to see if it
> looks correct.

Hand checking 350+ lines of automatically generated Makefile isn't amazing
fun though. There is definitly a rule in there to compile the bison / yacc
source into c files and perhaps a header.

The question is how do I force this to happen before the attempted lex



Michael Still (mikal at     UMT+11hrs

More information about the linux mailing list