ia64/xen-unstable

changeset 6785:89a842453d77

Added dev-docs target to build the Python Tools' API documentation.
author ewan@linford.intra
date Sun Sep 11 21:12:40 2005 +0100 (2005-09-11)
parents f44b792e898c
children 64d6de1ea743
files docs/Makefile
line diff
     1.1 --- a/docs/Makefile	Sun Sep 11 21:11:47 2005 +0100
     1.2 +++ b/docs/Makefile	Sun Sep 11 21:12:40 2005 +0100
     1.3 @@ -8,6 +8,7 @@ DVIPS		:= dvips
     1.4  LATEX		:= latex
     1.5  FIG2DEV		:= fig2dev
     1.6  LATEX2HTML	:= latex2html
     1.7 +DOXYGEN		:= doxygen
     1.8  
     1.9  pkgdocdir	:= /usr/share/doc/xen
    1.10  
    1.11 @@ -18,10 +19,14 @@ DOC_HTML	:= $(patsubst src/%.tex,html/%/
    1.12  
    1.13  GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
    1.14  
    1.15 +.PHONY:	all build dev-docs python-dev-docs ps pdf html clean install
    1.16 +
    1.17  all: build
    1.18  build: ps pdf html
    1.19  	rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
    1.20  
    1.21 +dev-docs: python-dev-docs
    1.22 +
    1.23  ps: $(DOC_PS)
    1.24  
    1.25  pdf: $(DOC_PDF)
    1.26 @@ -30,10 +35,18 @@ html:
    1.27  	@if which $(LATEX2HTML) 1>/dev/null 2>/dev/null; then \
    1.28  	$(MAKE) $(DOC_HTML); fi
    1.29  
    1.30 +python-dev-docs:
    1.31 +	mkdir -p api/tools/python
    1.32 +	@if which $(DOXYGEN) 1>/dev/null 2>/dev/null; then         \
    1.33 +        echo "Running doxygen to generate Python tools APIs ... "; \
    1.34 +	$(DOXYGEN) Doxyfile;                                       \
    1.35 +	$(MAKE) -C api/tools/python/latex ; fi
    1.36 +
    1.37  clean:
    1.38  	rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ 
    1.39  	rm -rf *.ilg *.log *.ind *.toc *.bak core
    1.40  	rm -rf $(GFX) ps pdf html
    1.41 +	rm -rf api
    1.42  
    1.43  install: all
    1.44  	rm -rf $(DESTDIR)$(pkgdocdir)