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`.
This commit is contained in:
Michael Schwarz 2015-09-10 00:23:22 +02:00
parent 57c9e9dc90
commit a6b45d8e86

View file

@ -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