public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@openvz.org>
To: Pekka Enberg <penberg@kernel.org>
Cc: mingo@kernel.org, sasha.levin@oracle.com, asias@redhat.com,
	kvm@vger.kernel.org, Cyrill Gorcunov <gorcunov@openvz.org>
Subject: [patch 1/2] tools: lkvm - Dont generate deps and verion file on clean target
Date: Tue, 28 May 2013 15:49:43 +0400	[thread overview]
Message-ID: <20130528115058.414749461@openvz.org> (raw)
In-Reply-To: 20130528114942.157262069@openvz.org

[-- Attachment #1: kvm-clean --]
[-- Type: text/plain, Size: 1279 bytes --]

This is redundant since we're to remove them right after
being generated.

CC: Ingo Molnar <mingo@kernel.org>
CC: Pekka Enberg <penberg@kernel.org>
CC: Sasha Levin <sasha.levin@oracle.com>
CC: Asias He <asias@redhat.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 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


  reply	other threads:[~2013-05-28 11:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-28 11:49 [patch 0/2] A few fixes for make and cpuid Cyrill Gorcunov
2013-05-28 11:49 ` Cyrill Gorcunov [this message]
2013-05-28 11:49 ` [patch 2/2] tools: lkvm - Filter out cpu vendor string Cyrill Gorcunov
2013-06-06 12:03   ` Pekka Enberg
2013-06-06 12:06     ` Cyrill Gorcunov
2013-06-06 13:39     ` Asias He
2013-06-07  8:17     ` Asias He
2013-06-07 11:06       ` Pekka Enberg
2013-06-07 12:20         ` Asias He
2013-06-07 13:39           ` Asias He
2013-06-08 11:48             ` Pekka Enberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130528115058.414749461@openvz.org \
    --to=gorcunov@openvz.org \
    --cc=asias@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=penberg@kernel.org \
    --cc=sasha.levin@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox