[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make -j and multiple targets

From: Peter Gammie
Subject: RE: make -j and multiple targets
Date: Thu, 6 Sep 2001 19:35:37 +1000 (EST)


On Thu, 6 Sep 2001, Howard Chu wrote:

> These rules don't accurately describe the dependencies that you're dealing
> with.
> If you analyzed your actual order of events, you wouldn't have this problem:
> lexer.c: lexer.l
>       flex -t lexer.l > lexer.c
> lexer.h: lexer.c
>       genHeader.pl lexer.l

point taken, patryk told me the same thing. however, it remains that there
is a nasty interaction between multiple targets and parallel makes.

> As a side note, it seems odd to me that a script designed to generate a
> header
> file needs to append anything to the C source file. Surely anything that
> needs
> to be defined should have gone into the header file, and #include'd by the C
> file.

yes, it's nasty. i grab all the tokens from lexer.l, generate an enum in
the .h for them, and a token-to-string function in the .c. put it down to
a phobia about #including files containing code (and also putting code in


reply via email to

[Prev in Thread] Current Thread [Next in Thread]