[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to serialize rule evaluation
From: |
Paul D. Smith |
Subject: |
Re: how to serialize rule evaluation |
Date: |
Thu, 24 Jan 2002 23:59:28 -0500 |
%% 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:
http://www.gnu.org http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist