X-Git-Url: http://git.tuebingen.mpg.de/?p=lopsub.git;a=blobdiff_plain;f=Makefile;h=31c2102a940a2ec372f78d5906e9da48852d6fc7;hp=c0057a38b89119897044caa0a1eaa705877989ca;hb=c1840c5bb555ba09c09bdeb2f29305681038317f;hpb=7623e601612eb36cf86511b40fef3f5a20e8b834 diff --git a/Makefile b/Makefile index c0057a3..31c2102 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,13 @@ endif .ONESHELL: .SHELLFLAGS := -ec +# Recipes which redirect stdout to the target of the rule (i.e., constructs +# like cmd > $@) create empty or incomplete output files if the command fails, +# for example when cmd was not found. Since the target exists and is uptodate +# in this case, this may lead to all sorts of problems. The following target +# makes sure that such files are removed. +.DELETE_ON_ERROR: + PREFIX ?= /usr/local M4 := m4 LN := ln -f