xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/vtpm: do not install if vtpm can not be build
@ 2012-03-14 19:02 Olaf Hering
  2012-04-03 14:56 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Olaf Hering @ 2012-03-14 19:02 UTC (permalink / raw)
  To: xen-devel

# 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:

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-03 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 19:02 [PATCH] tools/vtpm: do not install if vtpm can not be build Olaf Hering
2012-04-03 14:56 ` Ian Jackson
2012-04-03 15:01   ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).