From: Ben Harris Date: Mon, 11 Nov 2024 22:28:40 +0000 (+0000) Subject: Add .DELETE_ON_ERROR target to Makefile X-Git-Tag: bedstead-3.246~38 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=c93160c507fbb34b581f06aae8610e9e8ab93e34;p=bedstead.git Add .DELETE_ON_ERROR target to Makefile That ensures that output files of a rule get properly deleted if the recipe fails, which is almost always correct. --- diff --git a/Makefile b/Makefile index d4738f5..053766b 100644 --- a/Makefile +++ b/Makefile @@ -123,3 +123,5 @@ dist: $(DISTFILES) zip -r bedstead-$$(sed -n 's/^Version: //p' < bedstead.sfd).zip \ bedstead-$$(sed -n 's/^Version: //p' < bedstead.sfd) rm -r bedstead-$$(sed -n 's/^Version: //p' < bedstead.sfd) + +.DELETE_ON_ERROR: