[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH for-4.5 2/4] tools/xenstore: Introduce clients-install target

...to match the existing 'clients' built target.  This is particularly useful
when rebuilding the xenstore clients separately for a non-dom0 environment.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CC: Wei Liu <wei.liu2@xxxxxxxxxx>
 tools/xenstore/Makefile |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile
index 563abd4..cb4ab42 100644
--- a/tools/xenstore/Makefile
+++ b/tools/xenstore/Makefile
@@ -150,6 +150,14 @@ endif
        ln -sf xenstore-compat/xs.h  $(DESTDIR)$(INCLUDEDIR)/xs.h
        ln -sf xenstore-compat/xs_lib.h $(DESTDIR)$(INCLUDEDIR)/xs_lib.h
+.PHONY: clients-install
+clients-install: clients
+       $(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR)
+       set -e ; for c in $(CLIENTS) ; do \
+               ln -f $(DESTDIR)$(BINDIR)/xenstore $(DESTDIR)$(BINDIR)/$${c} ; \
+       done
 -include $(DEPS)
 # never delete any intermediate files.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.