diff options
author | 2009-12-07 21:04:52 +0200 | |
---|---|---|
committer | 2009-12-07 16:36:50 -0600 | |
commit | 90f445e1c9a2ce05d0b68c3159892181cdd600d6 (patch) | |
tree | d938430f3f9d6b1df1a7b58980077c6196f2d6e8 /rules.mak | |
parent | QMP: add human-readable description to error response (diff) | |
download | qemu-kvm-90f445e1c9a2ce05d0b68c3159892181cdd600d6.tar.gz qemu-kvm-90f445e1c9a2ce05d0b68c3159892181cdd600d6.tar.bz2 qemu-kvm-90f445e1c9a2ce05d0b68c3159892181cdd600d6.zip |
qemu: delete rule target on error
Instruct make to remove any rule target on error. This prevetns
situation where there was an error during build but generated file still
stays behind.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 7dbbbb0c9e4313cf2d2f6559b7899259fb09eb63)
Diffstat (limited to 'rules.mak')
-rw-r--r-- | rules.mak | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,3 +47,6 @@ cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ %.h-timestamp: %.mak $(call quiet-command, sh $(SRC_PATH)/create_config < $< > $@, " GEN $*.h") @cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h + +# will delete the target of a rule if commands exit with a nonzero exit status +.DELETE_ON_ERROR: |