Delete target file if command fails.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 26 Nov 2012 23:41:06 +0200
changeset 1438 a53df7bd6722
parent 1437 caeb534c6e59
child 1439 afa9be44e23c
child 1442 285bf856bbcc
Delete target file if command fails.
Makefile
--- a/Makefile	Sat Nov 24 23:39:30 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