From a6b45d8e86c934ee09f338a3b8ab08ce2dd95255 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Thu, 10 Sep 2015 00:23:22 +0200 Subject: Remove targets when commands fail. The make file now removes targets when commands fail. In some cases (e.g. generating files), an error would lead to a half-written file being left behind and that file would not get updated in the next invocation of `make`. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 693616a..854e2d2 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ ASYMPTOTE_EXPORTED_SVG_FILES := # Non-file goals. .PHONY: all clean generated dxf stl asy pdf +# Remove targets whose command failed. +.DELETE_ON_ERROR: + # Goal to build Everything. Also generates files which aren't compiled to anything else. Deined here to make it the default goal. all: generated dxf stl asy pdf -- cgit