summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-01-13 00:31:36 -0500
committeryenatch <yenatch@gmail.com>2018-01-13 00:31:36 -0500
commitd96095eacb5fd813b06598f4f5f7b6c9eb4f4530 (patch)
tree968cd93873d36e792cab3807cb4e907fc164afdd
parent88ec8c05e020b547e1abaaabb3cbb57a4848973f (diff)
Fix broken builds after running make without tools installed.
The culprit is the .ld file recipes, which create the file even if the command failed. These could be fixed on their own, but this way prevents it from happening again later.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8be7d896a..13c91f71d 100644
--- a/Makefile
+++ b/Makefile
@@ -84,6 +84,8 @@ endif
.SUFFIXES:
# Don't delete intermediate files
.SECONDARY:
+# Delete files that weren't built properly
+.DELETE_ON_ERROR:
# Create build subdirectories
$(shell mkdir -p $(addprefix $(BUILD_DIR)/, $(SUBDIRS)))