From: Andrew Cooper Subject: [PATCH for-4.5 2/4] tools/xenstore: Introduce clients-install target Date: Tue, 7 Oct 2014 12:02:08 +0100 Message-ID: <1412679730-17475-3-git-send-email-andrew.cooper3@citrix.com> References: <1412679730-17475-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412679730-17475-1-git-send-email-andrew.cooper3@citrix.com> 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 Cc: Andrew Cooper , Wei Liu , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org ...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 CC: Ian Campbell CC: Ian Jackson CC: Wei Liu --- 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_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. -- 1.7.10.4