aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorewan@linford.intra <ewan@linford.intra>2005-09-11 21:12:40 +0100
committerewan@linford.intra <ewan@linford.intra>2005-09-11 21:12:40 +0100
commit700f66a7edfa837920a008886b7efec1be0a0883 (patch)
tree36a12d7d40cb587a3b7ab764f6c389bd2f5b68cf /docs/Makefile
parent62860b375ee9c129a17361b360da29f606beb0cc (diff)
downloadxen-700f66a7edfa837920a008886b7efec1be0a0883.tar.gz
xen-700f66a7edfa837920a008886b7efec1be0a0883.tar.bz2
xen-700f66a7edfa837920a008886b7efec1be0a0883.zip
Added dev-docs target to build the Python Tools' API documentation.
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 117e63ce4f..188d69240a 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -8,6 +8,7 @@ DVIPS := dvips
LATEX := latex
FIG2DEV := fig2dev
LATEX2HTML := latex2html
+DOXYGEN := doxygen
pkgdocdir := /usr/share/doc/xen
@@ -18,10 +19,14 @@ DOC_HTML := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX))
GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
+.PHONY: all build dev-docs python-dev-docs ps pdf html clean install
+
all: build
build: ps pdf html
rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
+dev-docs: python-dev-docs
+
ps: $(DOC_PS)
pdf: $(DOC_PDF)
@@ -30,10 +35,18 @@ html:
@if which $(LATEX2HTML) 1>/dev/null 2>/dev/null; then \
$(MAKE) $(DOC_HTML); fi
+python-dev-docs:
+ mkdir -p api/tools/python
+ @if which $(DOXYGEN) 1>/dev/null 2>/dev/null; then \
+ echo "Running doxygen to generate Python tools APIs ... "; \
+ $(DOXYGEN) Doxyfile; \
+ $(MAKE) -C api/tools/python/latex ; fi
+
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
+ rm -rf api
install: all
rm -rf $(DESTDIR)$(pkgdocdir)