From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThYpT-00013C-MF for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:49:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThYpS-0000gs-KF for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:49:27 -0500 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:46669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThYpR-0000en-V3 for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:49:26 -0500 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 9 Dec 2012 14:48:05 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 947FC357804C for ; Sun, 9 Dec 2012 15:49:13 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qB94cATf1966398 for ; Sun, 9 Dec 2012 15:38:11 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qB94nB6S019287 for ; Sun, 9 Dec 2012 15:49:12 +1100 From: Wenchao Xia Date: Sun, 9 Dec 2012 12:48:26 +0800 Message-Id: <1355028506-16453-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] 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 v2: rebased to upstream 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