summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-09-10 00:23:22 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-09-16 01:41:45 +0200
commita6b45d8e86c934ee09f338a3b8ab08ce2dd95255 (patch)
treefa6e3a9d4d5d166af603685adb3a7b84010e838d
parent57c9e9dc906da0dd4b5d34faeec2feee392a8b9c (diff)
downloadpogojig-a6b45d8e86c934ee09f338a3b8ab08ce2dd95255.tar.gz
pogojig-a6b45d8e86c934ee09f338a3b8ab08ce2dd95255.tar.bz2
pogojig-a6b45d8e86c934ee09f338a3b8ab08ce2dd95255.zip
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`.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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