From 7f3a8ab26cf74ccf2640c88107f133667cfcc08f Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Thu, 16 Apr 2015 12:39:43 +0200 Subject: [PATCH] 8077814: Add .DELETE_ON_ERROR to makefiles Reviewed-by: tbell, ihse --- make/common/MakeBase.gmk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/common/MakeBase.gmk b/make/common/MakeBase.gmk index b144dd7426d..70502f4aa13 100644 --- a/make/common/MakeBase.gmk +++ b/make/common/MakeBase.gmk @@ -36,6 +36,10 @@ ifeq ($(wildcard $(SPEC)),) $(error MakeBase.gmk needs SPEC set to a proper spec.gmk) endif +# By defining this pseudo target, make will automatically remove targets +# if their recipe fails so that a rebuild is automatically triggered on the +# next make invocation. +.DELETE_ON_ERROR: ############################## # Functions