summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-11-19 09:53:04 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-11-20 10:32:59 +0100
commitbdb4af8bfd1eedb4cd58624b8dfdbc13f82c3654 (patch)
tree01d5f5687e99deca921d2d624523baa8bbc0c2f6 /Makefile
parent8b4f98a41f0ef053c623b8e4c111080755a38044 (diff)
downloadcoreboot-bdb4af8bfd1eedb4cd58624b8dfdbc13f82c3654.tar.gz
coreboot-bdb4af8bfd1eedb4cd58624b8dfdbc13f82c3654.tar.bz2
coreboot-bdb4af8bfd1eedb4cd58624b8dfdbc13f82c3654.zip
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 <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/12473 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8f9cc8fab87..2e5a74785bd6 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