[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] Makefile: Exclude tests/Makefile in unconfigure
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 4/5] Makefile: Exclude tests/Makefile in unconfigured tree |
Date: |
Thu, 19 Jan 2012 10:32:06 +0000 |
From: Andreas Färber <address@hidden>
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 <address@hidden>
Cc: Anthony Liguori <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
Makefile | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 2bbc547..d356f07 100644
--- 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
--
1.7.8.3
- [Qemu-devel] [PULL 0/5] Trivial patches for 14 to 19 January 2012, Stefan Hajnoczi, 2012/01/19
- [Qemu-devel] [PATCH 4/5] Makefile: Exclude tests/Makefile in unconfigured tree,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 1/5] qemu-tool: Fix mixup of int64 and int64_t, Stefan Hajnoczi, 2012/01/19
- [Qemu-devel] [PATCH 2/5] tests: Silence gtester in Makefile, Stefan Hajnoczi, 2012/01/19
- [Qemu-devel] [PATCH 3/5] lm32: Fix mixup of uint32 and uint32_t, Stefan Hajnoczi, 2012/01/19
- [Qemu-devel] [PATCH 5/5] Makefile: Remove generated headers on clean, Stefan Hajnoczi, 2012/01/19
- Re: [Qemu-devel] [PULL 0/5] Trivial patches for 14 to 19 January 2012, Anthony Liguori, 2012/01/19