Delete target file if command fails.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 26 Nov 2012 23:32:33 +0200
changeset 1002 73a5303842e3
parent 1001 d9b2474219f6
child 1003 8c1abe90331a
child 1009 c6e2c636296f
Delete target file if command fails.
Makefile
--- a/Makefile	Thu Nov 22 21:18:54 2012 +0200
+++ b/Makefile	Mon Nov 26 23:32:33 2012 +0200
@@ -2,6 +2,10 @@
 #
 # You can do anything with this file without any warranty.
 
+
+################################################################
+# Standard Makefile settings.
+
 SHELL = /bin/sh
 export PATH := /bin:/usr/bin:${PATH}
 
@@ -11,6 +15,8 @@
 MAKEFLAGS += -R
 # Disable built in suffix rules.
 .SUFFIXES:
+# Delete target file if command fails.
+.DELETE_ON_ERROR:
 # Default target.
 .DEFAULT_GOAL = all