[systemd-devel] .DELETE_ON_ERROR

Lennart Poettering lennart at poettering.net
Tue Jul 17 08:36:45 PDT 2012


On Tue, 17.07.12 17:29, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> Hi,
> some rules have "|| rm -f $@" at the end.
> configure.ac already has -Wno-portability, so we could use
> .DELETE_ON_ERROR: in the Makefile.am to avoid the need to write those.
> One disadvantage of the current solution (apart from the few extra
> easy-to-forget characters at the end) is that it silently swallows the
> error, so to be 100% correct, one should say
>  || { rm -f $@; exit 1; }
> which is a bit much.
> 
> If this is acceptable, I would be happy to whip up a patch.

Please do! DELETE_ON_ERROR sounds great, didn't know it existed! Thanks
a ton!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list