From bdb4af8bfd1eedb4cd58624b8dfdbc13f82c3654 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 19 Nov 2015 09:53:04 +0100 Subject: build system: don't let a broken .xcompile linger in the tree If the xcompile script fails (with an error message), we should delete the generated file so that later builds try to regenerate the file and re-report the problem if it still persists. Change-Id: I70ec37ca8ccb8ed3d8d0da48b326f5e0d722f314 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/12473 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8f9cc8fab..2e5a74785b 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ # in addition to the dependency below, create the file if it doesn't exist # to silence stupid warnings about a file that would be generated anyway. -$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile))) +$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile || rm -f .xcompile))) .xcompile: util/xcompile/xcompile $< $(XGCCPATH) > $@.tmp -- cgit v1.2.3