From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH v5 04/19] add distclean target and gitignore more Date: Wed, 11 Jun 2014 16:01:19 +0200 Message-ID: <1402495294-30737-5-git-send-email-drjones@redhat.com> References: <1402495294-30737-1-git-send-email-drjones@redhat.com> Cc: christoffer.dall@linaro.org, pbonzini@redhat.com To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46038 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755484AbaFKOBp (ORCPT ); Wed, 11 Jun 2014 10:01:45 -0400 In-Reply-To: <1402495294-30737-1-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: also add a check for config.mak in Makefile Signed-off-by: Andrew Jones Acked-by: Christoffer Dall --- .gitignore | 5 +++++ Makefile | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d6663ec10caf1..775d0dfd8263e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,8 @@ patches .stgit-* cscope.* +*.swp +/config.mak +/*-run +/test.log +/msr.out diff --git a/Makefile b/Makefile index 566d2bee771e1..7eeece84300df 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ +ifeq ($(wildcard config.mak),) +$(error run ./configure first. See ./configure -h) +endif + include config.mak DESTDIR := $(PREFIX)/share/qemu/tests -.PHONY: arch_clean clean +.PHONY: arch_clean clean distclean #make sure env CFLAGS variable is not used CFLAGS = @@ -53,3 +57,6 @@ install: clean: arch_clean $(RM) lib/.*.d $(libcflat) $(cflatobjs) + +distclean: clean + $(RM) config.mak $(TEST_DIR)-run test.log msr.out -- 1.9.3