Hi,

When an error occurs in a rule, make will not delete the target if the
timestamp has not changed.

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

The makefile looks like:

----------------------------------------------------------------------
.DELETE_ON_ERROR:

all:: libfoo.a

libfoo.a: bar.o

bar.o: bar.cxx
           $(CC) ....
----------------------------------------------------------------------

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

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

Or is there another way?

Thanks,
-Raymond

Reply via email to