aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-01-27 18:26:41 +0000
committerEwan Mellor <ewan@xensource.com>2007-01-27 18:26:41 +0000
commit8359e64538ace1b79f57f6319ce09bfc5709a445 (patch)
tree415b7989d34d557fa70b454c692113e309467fcb /docs/Makefile
parenta95d80318ef4d9e81459ce5f9687e160377933e2 (diff)
downloadxen-8359e64538ace1b79f57f6319ce09bfc5709a445.tar.gz
xen-8359e64538ace1b79f57f6319ce09bfc5709a445.tar.bz2
xen-8359e64538ace1b79f57f6319ce09bfc5709a445.zip
Integrate the Xen-API doc into the build.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 0432855384..bc80193dd0 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -2,20 +2,10 @@
XEN_ROOT=..
include $(XEN_ROOT)/Config.mk
+include $(XEN_ROOT)/docs/Docs.mk
VERSION = xen-unstable
-PS2PDF := ps2pdf
-DVIPS := dvips
-LATEX := latex
-FIG2DEV := fig2dev
-LATEX2HTML := latex2html
-DOXYGEN := doxygen
-POD2MAN := pod2man
-
-pkgdocdir := /usr/share/doc/xen
-mandir := /usr/share/man
-
DOC_MAN5SRC := $(wildcard man/*.pod.5)
DOC_MAN1SRC := $(wildcard man/*.pod.1)
DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(DOC_MAN1SRC))
@@ -32,6 +22,9 @@ all: build
.PHONY: build
build: ps pdf html man-pages
+ @if which $(DOT) 1>/dev/null 2>/dev/null ; then \
+ $(MAKE) -C xen-api build ; else \
+ echo "Graphviz (dot) not installed; skipping xen-api." ; fi
rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
.PHONY: dev-docs
@@ -74,6 +67,7 @@ man5/%.5: man/%.pod.5 Makefile
.PHONY: clean
clean:
+ $(MAKE) -C xen-api clean
rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~
rm -rf *.ilg *.log *.ind *.toc *.bak core
rm -rf $(GFX) ps pdf html
@@ -88,6 +82,9 @@ distclean: clean
install: all
rm -rf $(DESTDIR)$(pkgdocdir)
$(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)
+
+ $(MAKE) -C xen-api install
+
cp -dR ps $(DESTDIR)$(pkgdocdir)
cp -dR pdf $(DESTDIR)$(pkgdocdir)
$(INSTALL_DIR) $(DESTDIR)$(mandir)