[Top][All Lists]

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

Re: how to serialize rule evaluation

From: Kevin Nomura
Subject: Re: how to serialize rule evaluation
Date: Fri, 25 Jan 2002 10:57:13 -0800

Thanks for the quick response.  I had one other possible saving
measure: the manual states that if multiple goals are specified
on the command line they are evaluated from left to right in the
order specified.  Can this be used to serialize goal evaluation?


"Paul D. Smith" wrote:
> %% Kevin Nomura <address@hidden> writes:
>   kn> Can I somehow specify precedence only, meaning to wait on
>   kn> evaluating $(objs) until .genheaders is up-to-date?
> Not without recursion.  Sorry.
>   kn> But it is too slow, because the Makefile is enormous and it gets
>   kn> reparsed.  Is there some way to avoid that?
> Well, you can break the makefile into two parts so that only the
> necessary parts are included in when you invoke the right make.
> If you don't want to physically break it up you can logically break it
> up by using ifeq, etc. to only parse the proper part of the file.  For
> example you can check the value of $(MAKECMDGOALS) to decide which
> section of the makefile should be visible to the current invocation of
> make.
> That's about the only suggestion I have.
> --
> -------------------------------------------------------------------------------
>  Paul D. Smith <address@hidden>          Find some GNU make tips at:
>  "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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