%% Raymond Nijssen <[EMAIL PROTECTED]> writes:

  rn> As a result, my .a files are not deleted if a .o file fails to
  rn> compile, and then my executable will link happily in a recursive
  rn> make environment.  This is undesired.

That means your recursive make environment isn't set up correctly.

You should have prerequisites set up so that failures in a directory
ensure that no other directories that depend on the products of the
failing directory would be built.

As an aside, this is about the only way to get robust parallel builds
using recursive make, as well.

  rn> Currently make will only try to delete child targets of the
  rn> failing target.

  rn> I would like to be able to delete all parent targets as will
  rn> because they are invalid as soon as any of their children fails.
  rn> (and regardless of their mtime, but that's a different issue)

  rn> Or is there another way?

I cannot think of any way to get the behavior you're looking for (if a
target fails to build, then make deletes that target, plus the target it
was a prerequisite of, plus whatever _that_ was a prerequisite of, etc.)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

Reply via email to