Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-18 Thread Wenchao Xia
于 2012-11-16 20:49, Paolo Bonzini 写道: Il 16/11/2012 13:40, Wenchao Xia ha scritto: I guess "make distclean" for second time would fail in this case, because $(SRC_PATH) is not set. I found a better way to do it without MAKEFILES: -ifneq ($(wildcard config-host.mak),) - include $(SRC_PATH)/

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Paolo Bonzini
Il 16/11/2012 13:40, Wenchao Xia ha scritto: > I guess "make distclean" for second time would fail in this case, > because $(SRC_PATH) is not set. I found a better way to do it without > MAKEFILES: > > -ifneq ($(wildcard config-host.mak),) > - include $(SRC_PATH)/tests/Makefile > + include t

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Wenchao Xia
于 2012-11-16 19:16, Paolo Bonzini 写道: Il 16/11/2012 12:01, Wenchao Xia ha scritto: ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/tests/Makefile endif to -include $(SRC_PATH)/tests/Makefile ? yes, but original author seems not include tests/Makefile in this condition on purpo

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Paolo Bonzini
Il 16/11/2012 12:01, Wenchao Xia ha scritto: >> >> >> ifneq ($(wildcard config-host.mak),) >> include $(SRC_PATH)/tests/Makefile >> endif >> >> to >> >> -include $(SRC_PATH)/tests/Makefile >> >> ? >> > yes, but original author seems not include tests/Makefile in > this condition on purpose, so us

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Wenchao Xia
于 2012-11-16 18:56, Paolo Bonzini 写道: Il 16/11/2012 11:31, Wenchao Xia ha scritto: 于 2012-11-16 18:23, Peter Maydell 写道: On 16 November 2012 10:12, Wenchao Xia wrote: Currently make clean only clean tests/tcg and hard to extend. This patch added command make check-clean, which clean all g

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Paolo Bonzini
Il 16/11/2012 11:31, Wenchao Xia ha scritto: > 于 2012-11-16 18:23, Peter Maydell 写道: >> On 16 November 2012 10:12, Wenchao Xia >> wrote: >>>Currently make clean only clean tests/tcg and hard to extend. >>> This patch added command make check-clean, which clean all >>> generated files used in t

[Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Wenchao Xia
Currently make clean only clean tests/tcg and hard to extend. This patch added command make check-clean, which clean all generated files used in tests. With this command root Makefile do not care tests clean method any more, it simply calls the command to do it, so any more clean script could be

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Wenchao Xia
于 2012-11-16 18:23, Peter Maydell 写道: On 16 November 2012 10:12, Wenchao Xia wrote: Currently make clean only clean tests/tcg and hard to extend. This patch added command make check-clean, which clean all generated files used in tests. With this command root Makefile do not care tests clean

Re: [Qemu-devel] [PATCH V9 2/8] Buildsystem clean tests directory clearly

2012-11-16 Thread Peter Maydell
On 16 November 2012 10:12, Wenchao Xia wrote: > Currently make clean only clean tests/tcg and hard to extend. > This patch added command make check-clean, which clean all > generated files used in tests. With this command root Makefile > do not care tests clean method any more, it simply calls t