12-27-06 12:20 AM
wyse03br@yahoo.com.br writes:
[Please do not top-post. Rest of the message re-ordered]
> toby wrote:
This will execute do_on_failure on *any* failure;
the OP wanted to execute cleanup only on interruption.
It may or may not make sense to cleanup on other failures (perhaps
further investigation of why make failed in non-interrupted case
requires intermediate results).
[vbcol=seagreen]
> Unfortunately I can't add the wrapper, the Makefile is called from a
> monolithic application.
You sure can:
all:
bash -c "trap 'clean-up' INT TERM ; $(MAKE) $(MFLAGS) target_with_cleanup"
target_with_cleanup: dependencies
whatever ...
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
[ Post a follow-up to this message ]
|