Makefile: delete output on error

I had a disk full condition and a partial hex file
got generated. Following make failed trying to use it.
We can make build a bit more robust by instructing
make to remove output files on error.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2012-08-30 12:59:31 +03:00 committed by Kevin O'Connor
parent 7f036855d9
commit 3dcc223e3d
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ all: $(target-y)
# Make definitions
.PHONY : all clean distclean FORCE
.DELETE_ON_ERROR:
vpath %.c src vgasrc
vpath %.S src vgasrc