All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH] tools/vtpm: do not install if vtpm can not be build
Date: Wed, 14 Mar 2012 20:02:10 +0100	[thread overview]
Message-ID: <eed3dbadeb151d9d93cf.1331751730@probook.site> (raw)

# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1331751709 -3600
# Node ID eed3dbadeb151d9d93cf2b041aa63b9bacd1e4ad
# Parent  db4b70a33865e2fe77584c67d7d7644045ddf4ca
tools/vtpm: do not install if vtpm can not be build

A simple 'make tools' fails in vtpm because there is also a 'make install'
during make tools. vtpm checks only in the build target wether it can be
built at all, but the check is missing in the install target as well.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

diff -r db4b70a33865 -r eed3dbadeb15 tools/vtpm/Makefile
--- a/tools/vtpm/Makefile
+++ b/tools/vtpm/Makefile
@@ -23,7 +23,11 @@ build: build_sub
 
 .PHONY: install
 install: build
-	$(MAKE) -C $(VTPM_DIR) $@
+	set -e; if [ -e $(GMP_HEADER) ]; then \
+		$(MAKE) -C $(VTPM_DIR) $@; \
+	else \
+		echo "=== Unable to build VTPMs. libgmp could not be found."; \
+	fi
 
 .PHONY: clean
 clean:

             reply	other threads:[~2012-03-14 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14 19:02 Olaf Hering [this message]
2012-04-03 14:56 ` [PATCH] tools/vtpm: do not install if vtpm can not be build Ian Jackson
2012-04-03 15:01   ` Olaf Hering

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=eed3dbadeb151d9d93cf.1331751730@probook.site \
    --to=olaf@aepfle.de \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.