chiark / gitweb /
build-sys: use .DELETE_ON_ERROR
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Jul 2012 15:58:14 +0000 (17:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jul 2012 23:30:01 +0000 (01:30 +0200)
commit96bd03d5b8d5d04fc8037c03a43bb5b148cc1e29
treec3777fe697743ab668eb6f2db90c0404f0bf3284
parentecca17f6eec83b58f39ff5dc7894044c524ddf41
build-sys: use .DELETE_ON_ERROR

All instances of "|| rm $@" are replaced with .DELETE_ON_ERROR, which
has a similar effect. One difference is that the return code is not
masked by rm return code.

.DELETE_ON_ERROR is GNU-Make specific, but -Wno-portability is already
defined, and it's unlikely that anyone would build systemd with a
shell not supporting .DELETE_ON_ERROR. If they did, then
.DELETE_ON_ERROR would be silently ignored, i.e. in the worst case a
garbage file wouldn't be deleted, which is not very serious.
Makefile.am