# Fri Apr 30 17:41:45 2010 +0100
# Implement 'xm vcpu-set' command for HVM guest
-OCAML_XENSTORED_REPO=http://xenbits.xensource.com/ext/xen-ocaml-tools.hg
-
-# Build OCAML version of xenstored instead of the in-tree C version?
-# This will cause $(OCAML_XENSTORED_REPO) to be cloned.
-CONFIG_OCAML_XENSTORED ?= n
-
# Optional components
XENSTAT_XENTOP ?= y
VTPM_TOOLS ?= n
SUBDIRS-y += include
SUBDIRS-y += libxc
SUBDIRS-y += flask
-SUBDIRS-$(CONFIG_OCAML_XENSTORED) += ocaml-xenstored
SUBDIRS-y += xenstore
SUBDIRS-y += misc
SUBDIRS-y += examples
$(buildmakevars2shellvars); \
$(MAKE) -C ioemu-dir clean; \
fi
-
-ocaml-xenstored:
- set -ex; \
- rm -rf ocaml-xenstored.tmp; \
- hg clone $(OCAML_XENSTORED_REPO) ocaml-xenstored.tmp; \
- if [ "$(OCAML_XENSTORED_TAG)" ]; then \
- hg -R ocaml-xenstored.tmp update -r $(OCAML_XENSTORED_TAG) ;\
- hg -R ocaml-xenstored.tmp branch mybranch ;\
- fi; \
- mv ocaml-xenstored.tmp ocaml-xenstored; \
-
-subdir-all-ocaml-xenstored subdir-install-ocaml-xenstored: ocaml-xenstored
- $(absolutify_xen_root); \
- $(MAKE) -C ocaml-xenstored $(patsubst subdir-%-ocaml-xenstored,%,$@);
-
-subdir-clean-ocaml-xenstored:
- set -e; if test -d ocaml-xenstored; then \
- $(MAKE) -C ocaml-xenstored clean; \
- fi
-
.PHONY: install
install: all
-ifneq ($(CONFIG_OCAML_XENSTORED),y)
- $(INSTALL_DIR) $(DESTDIR)/var/run/xenstored
- $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored
- $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
-endif
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)