Delete target file if command fails.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 26 Nov 2012 23:41:06 +0200
changeset 44 e7fc05196363
parent 43 0305de638f1a
child 45 13e6bcf80d58
Delete target file if command fails.
Makefile
--- a/Makefile	Mon Nov 19 00:24:05 2012 +0200
+++ b/Makefile	Mon Nov 26 23:41:06 2012 +0200
@@ -1,3 +1,7 @@
+
+################################################################
+# Standard GNU Makefile settings.
+
 SHELL = /bin/sh
 export PATH := /bin:/usr/bin:${PATH}
 
@@ -7,6 +11,8 @@
 MAKEFLAGS += -R
 # Disable built in suffix rules.
 .SUFFIXES:
+# Delete target file if command fails.
+.DELETE_ON_ERROR:
 # Default target.
 .DEFAULT_GOAL = all