# Set this to some other value on systems with no Xen libs to
# build only the client stuff and the fakeserver.
-COMPILE_XENSTUFF ?= yes
+COMPILE_XENSTUFF=yes
export COMPILE_XENSTUFF
PRODUCT_VERSION?=unknown
phase3:
omake phase3
-.PHONY: api
-api: all
- @ :
-
.PHONY: xapimon
xapimon:
omake ocaml/xapimon/xapimon
otags -vi -r . -o tags
.PHONY: doc
-# For the doc target, we need to have phase2 done in case autogenerated .ml files are required
-doc:
- omake ocaml/util/version.ml
- omake phase1 phase2
+doc: api-doc api-libs-doc
+
+.PHONY: api-doc
+api-doc: version import-v6
+ omake phase1 phase2 # autogenerated files might be required
omake doc
+
+.PHONY: api-libs-doc
+api-libs-doc:
+ @(cd ../xen-api-libs.hg 2> /dev/null && $(MAKE) doc) || \
+ (echo ">>> If you have a myclone of xen-api-libs, its documentation will be included. <<<")
+
+.PHONY: import-v6
+import-v6:
+ cd /myrepos/v6.hg; ./install.sh . ../xen-api.hg/
.PHONY: version
version:
+++ /dev/null
-#!/bin/sh
-
-echo "This is just a temporary fix. Ideally, the effect would be the same when"
-echo "just running the following command: make doc."
-
-echo "[Installing v6 proprietary code...]"
-cd /myrepos/v6.hg
-./install.sh . ../xen-api.hg/
-
-echo "[Making xen-api documentation...]"
-cd ../xen-api.hg
-make doc
-
-if [ -e ../xen-api-libs.hg ]
-then
- echo "[Found xen-api-libs.hg: making its documentation...]"
- cd ../xen-api-libs.hg
- make doc
- cd ../xen-api.hg
-fi
-
-echo "Open 'ocaml/doc/index.html' to explore the generated documentation."