From: Andrew Jones Subject: [kvm-unit-tests PATCH v2 5/6] Makefile: change 'make install' to install standalone tests Date: Mon, 13 Jul 2015 19:03:02 +0200 Message-ID: <1436806983-29783-6-git-send-email-drjones@redhat.com> References: <1436806983-29783-1-git-send-email-drjones@redhat.com> Cc: pbonzini@redhat.com, mtosatti@redhat.com, jen@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46674 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792AbbGMRDP (ORCPT ); Mon, 13 Jul 2015 13:03:15 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 4E8C12B6494 for ; Mon, 13 Jul 2015 17:03:15 +0000 (UTC) In-Reply-To: <1436806983-29783-1-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: make install wasn't very useful without also installing scripts for the qemu command lines. I suspect 'make install' was never used. Installing standalone tests could be useful though, so let's do that instead. Signed-off-by: Andrew Jones --- Makefile | 6 +++--- config/config-arm-common.mak | 2 -- config/config-x86-common.mak | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index e40735f45b131..0d5933474cd8c 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ endif include config.mak -DESTDIR := $(PREFIX)/share/qemu/tests +DESTDIR := $(PREFIX)/share/kvm-unit-tests/ .PHONY: arch_clean clean distclean cscope @@ -67,9 +67,9 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS)) standalone: all @scripts/mkstandalone.sh -install: +install: standalone mkdir -p $(DESTDIR) - install $(tests_and_config) $(DESTDIR) + install tests/* $(DESTDIR) clean: arch_clean $(RM) lib/.*.d $(libcflat) $(cflatobjs) diff --git a/config/config-arm-common.mak b/config/config-arm-common.mak index 0674daaa476d7..698555d6a676f 100644 --- a/config/config-arm-common.mak +++ b/config/config-arm-common.mak @@ -64,8 +64,6 @@ arm_clean: libfdt_clean asm_offsets_clean ################################################################## -tests_and_config = $(TEST_DIR)/*.flat $(TEST_DIR)/unittests.cfg - generated_files = $(asm-offsets) test_cases: $(generated_files) $(tests-common) $(tests) diff --git a/config/config-x86-common.mak b/config/config-x86-common.mak index d45c9a8e454d8..2ee7b7724bbaf 100644 --- a/config/config-x86-common.mak +++ b/config/config-x86-common.mak @@ -43,8 +43,6 @@ tests-common += api/dirty-log tests-common += api/dirty-log-perf endif -tests_and_config = $(TEST_DIR)/*.flat $(TEST_DIR)/unittests.cfg - test_cases: $(tests-common) $(tests) $(TEST_DIR)/%.o: CFLAGS += -std=gnu99 -ffreestanding -I lib -I lib/x86 -- 2.4.3