]> git.proxmox.com Git - qemu.git/commitdiff
Makefile: Exclude tests/Makefile in unconfigured tree
authorAndreas Färber <andreas.faerber@web.de>
Tue, 17 Jan 2012 12:16:05 +0000 (13:16 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 19 Jan 2012 08:19:16 +0000 (08:19 +0000)
Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build:
split unit test builds to a separate makefile fragment),
in absence of config-host.mak an undefined $(SRC_PATH) breaks
`make distclean' due to /tests/Makefile not being include'able.

Fix by only including when config-host.mak is present.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile

index 2bbc54710898f610304de41297b9ac49d8402754..d356f07051b4a2b74a3d1702ebd6387bc0d4184a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,9 @@ qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
 
 gen-out-type = $(subst .,-,$(suffix $@))
 
+ifneq ($(wildcard config-host.mak),)
 include $(SRC_PATH)/tests/Makefile
+endif
 
 $(qapi-dir)/qga-qapi-types.c $(qapi-dir)/qga-qapi-types.h :\
 $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py