Dependancy issue the Lex / Yacc / Automake
Michael Still
mikal at stillhq.com
Thu Mar 21 14:23:37 EST 2002
On Wed, 20 Mar 2002, Ben Elliston wrote:
> >>>>> "Martin" == Martin Schwenke <martin at meltin.net> 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 Makefile.in 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
compile?
Mikal
--
Michael Still (mikal at stillhq.com) UMT+11hrs
More information about the linux
mailing list