help-make
[Top][All Lists]
Advanced

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

Re: How to refer to the first target?


From: Peng Yu
Subject: Re: How to refer to the first target?
Date: Thu, 3 Dec 2009 20:58:41 -0600

On Thu, Nov 26, 2009 at 3:44 PM, Allan Odgaard
<address@hidden> wrote:
> On 26 Nov 2009, at 22:29, Peng Yu wrote:
>
>>> [...]
>>
>> This solution seems awkward to me. There maybe not be a good pattern that
>> catch both a and b. Should gnu make have a more natural solution to this
>> problem?
>
> I had the problem with ANTLR which is a parser-generator and generates
> multiple files.
>
> I ended up with a solution a la:
>
>    grammar.cpp: grammar.g
>        antlr …
>    lexer.cpp: grammar.cpp
>        touch $@
>
> Here antlr generates both grammar.cpp + lexer.cpp, but as far as make knows,
> lexer.cpp is generated from grammar.cpp which is what depends on grammar.g.

Is there any plan in the gnu make development team to add the support
of multiple targets in the future?




reply via email to

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