From: Avi Kivity Subject: [PATCH QEMU-KVM 34/34] test: avoid deleting intermediate .o files Date: Wed, 16 Sep 2009 12:26:09 +0300 Message-ID: <1253093169-1423-35-git-send-email-avi@redhat.com> References: <1253093169-1423-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55104 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758385AbZIPJ0N (ORCPT ); Wed, 16 Sep 2009 05:26:13 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8G9QGwu008710 for ; Wed, 16 Sep 2009 05:26:16 -0400 In-Reply-To: <1253093169-1423-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: If make doesn't see an intermediate file mentioned explicitly, it deletes it after making the target. This silly behaviour causes needless rebuilds. Add all intermediates as explicit dependncies to prevent this behaviour. Signed-off-by: Avi Kivity --- kvm/user/config-x86-common.mak | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/kvm/user/config-x86-common.mak b/kvm/user/config-x86-common.mak index 9d6d281..3f279ed 100644 --- a/kvm/user/config-x86-common.mak +++ b/kvm/user/config-x86-common.mak @@ -48,7 +48,8 @@ $(TEST_DIR)/test32.flat: $(TEST_DIR)/test32.o $(TEST_DIR)/smptest.flat: $(cstart.o) $(TEST_DIR)/smptest.o -$(TEST_DIR)/emulator.flat: $(cstart.o) $(TEST_DIR)/vm.o $(TEST_DIR)/print.o +$(TEST_DIR)/emulator.flat: $(cstart.o) $(TEST_DIR)/emulator.o \ + $(TEST_DIR)/vm.o $(TEST_DIR)/print.o $(TEST_DIR)/port80.flat: $(cstart.o) $(TEST_DIR)/port80.o @@ -62,6 +63,12 @@ $(TEST_DIR)/realmode.flat: $(TEST_DIR)/realmode.o $(TEST_DIR)/realmode.o: bits = 32 +$(TEST_DIR)/memtest1.flat: $(TEST_DIR)/memtest1.o + +$(TEST_DIR)/stringio.flat: $(TEST_DIR)/stringio.o + +$(TEST_DIR)/simple.flat: $(TEST_DIR)/simple.o + $(TEST_DIR)/msr.flat: $(cstart.o) $(TEST_DIR)/msr.o arch_clean: -- 1.6.4.1