From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: [patch 1/2] tools: lkvm - Dont generate deps and verion file on clean target Date: Tue, 28 May 2013 15:49:43 +0400 Message-ID: <20130528115058.414749461@openvz.org> References: <20130528114942.157262069@openvz.org> Cc: mingo@kernel.org, sasha.levin@oracle.com, asias@redhat.com, kvm@vger.kernel.org, Cyrill Gorcunov To: Pekka Enberg Return-path: Received: from mail-lb0-f170.google.com ([209.85.217.170]:54424 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933211Ab3E1LvB (ORCPT ); Tue, 28 May 2013 07:51:01 -0400 Received: by mail-lb0-f170.google.com with SMTP id t13so7669630lbd.1 for ; Tue, 28 May 2013 04:51:00 -0700 (PDT) Content-Disposition: inline; filename=kvm-clean Sender: kvm-owner@vger.kernel.org List-ID: This is redundant since we're to remove them right after being generated. CC: Ingo Molnar CC: Pekka Enberg CC: Sasha Levin CC: Asias He Signed-off-by: Cyrill Gorcunov --- tools/kvm/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) Index: linux-2.6.git/tools/kvm/Makefile =================================================================== --- linux-2.6.git.orig/tools/kvm/Makefile +++ linux-2.6.git/tools/kvm/Makefile @@ -324,10 +324,6 @@ all: arch_support_check $(PROGRAM) $(PRO arch_support_check: $(UNSUPP_ERR) -KVMTOOLS-VERSION-FILE: - @$(SHELL_PATH) util/KVMTOOLS-VERSION-GEN $(OUTPUT) --include $(OUTPUT)KVMTOOLS-VERSION-FILE - # When building -static all objects are built with appropriate flags, which # may differ between static & dynamic .o. The objects are separated into # .o and .static.o. See the %.o: %.c rules below. @@ -504,5 +500,12 @@ cscope: $(Q) $(CSCOPE) -bkqu .PHONY: cscope -# Deps +# +# Escape redundant work on cleaning up +ifneq ($(MAKECMDGOALS),clean) -include $(DEPS) + +KVMTOOLS-VERSION-FILE: + @$(SHELL_PATH) util/KVMTOOLS-VERSION-GEN $(OUTPUT) +-include $(OUTPUT)KVMTOOLS-VERSION-FILE +endif