From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] tools/vtpm: do not install if vtpm can not be build Date: Wed, 14 Mar 2012 20:02:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # 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 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: