[systemd-devel] .DELETE_ON_ERROR
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Tue Jul 17 08:29:47 PDT 2012
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.
Zbyszek
More information about the systemd-devel
mailing list