help-make
[Top][All Lists]
Advanced

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

avoiding re-exec make


From: Nicholas Leippe
Subject: avoiding re-exec make
Date: Thu, 12 Jul 2001 14:17:19 -0700

Following where my last post left off,
I've been thinking on how to best solve
the problem.

No matter how I've thought it through,
it seems that the dependencies really
ought to be recomputed if any generated
header/included files are outdated to
be sure that api's always match.

Setting the dependency files to depend
on the generated header files will do
this, however, this causes them all to
be recalculated whenever any one
generated header file is outdated--
causing make to recalculate them and 
re-exec itself.

My question now is this: if there are
just 2 dependency files, and they need
to be recalculated since a .h file
is outdated, will make rebuild both and
only re-exec itself once, or rebuild
them one at a time re-execing itself
twice?

If it does them all and only re-execs
itself just the once, then I'd consider
that an acceptable, justified penalty to
pay to ensure that each build is correct.

If it re-execs once for each .d file,
how else could this be avoided?


Nick



reply via email to

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