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:
parent
57c9e9dc90
commit
a6b45d8e86
1 changed files with 3 additions and 0 deletions
3
Makefile
3
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue