From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te242-0005ur-MO for qemu-devel@nongnu.org; Thu, 29 Nov 2012 06:13:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te23w-0002bv-SY for qemu-devel@nongnu.org; Thu, 29 Nov 2012 06:13:54 -0500 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:34828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te23w-0002ac-8L for qemu-devel@nongnu.org; Thu, 29 Nov 2012 06:13:48 -0500 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 29 Nov 2012 16:43:40 +0530 Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qATBDY1W33423562 for ; Thu, 29 Nov 2012 16:43:37 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qATBDYra029458 for ; Thu, 29 Nov 2012 22:13:35 +1100 From: Wenchao Xia Date: Thu, 29 Nov 2012 19:12:15 +0800 Message-Id: <1354187535-16803-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH for-1.3] Build system clean generated source files in tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, pbonzini@redhat.com, Wenchao Xia Currently .c files generated in ./tests are not deleted in make clean. This introduce trouble that, once we made tests in source root directory, we can't do a succesfully build for tests in another out of tree directory, for that some file may miss the step to be generated. This patch fix it. Steps to reproduce: in root source directory: 1 ./configure --target-list=x86_64-softmmu 2 make check-report-unit.xml 3 make distclean && rm -rf *-linux-user *-softmmu goto another directory: 4 configure 5 make check-report-unit.xml Signed-off-by: Wenchao Xia --- tests/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index b60f0fb..2c90138 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -30,6 +30,7 @@ check-qtest-sparc-y = tests/m48t59-test$(EXESUF) check-qtest-sparc64-y = tests/m48t59-test$(EXESUF) GENERATED_HEADERS += tests/test-qapi-types.h tests/test-qapi-visit.h tests/test-qmp-commands.h +GENERATED_SOURCES += tests/test-qapi-types.c tests/test-qapi-visit.c tests/test-qmp-marshal.c test-obj-y = tests/check-qint.o tests/check-qstring.o tests/check-qdict.o \ tests/check-qlist.o tests/check-qfloat.o tests/check-qjson.o \ -- 1.7.1