]> xenbits.xensource.com Git - xen.git/commitdiff
tools/xenstore: Introduce clients-install target
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Oct 2014 11:02:08 +0000 (12:02 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 Oct 2014 12:38:23 +0000 (13:38 +0100)
...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@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstore/Makefile

index 563abd486f2d57fefbe2b75f6ec03f247446ea34..cb4ab427f5d42ea25ea4f4867123f7a7c92b269b 100644 (file)
@@ -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_DIR) $(DESTDIR)$(BINDIR)
+       $(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.