ia64/xen-unstable

view docs/xen-api/Makefile @ 13701:ea3c75204555

Integrate the Xen-API doc into the build.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Jan 27 18:26:41 2007 +0000 (2007-01-27)
parents a2d6e4a53e7a
children 7cce8838abe0
line source
1 #!/usr/bin/make -f
3 XEN_ROOT=../..
4 include $(XEN_ROOT)/Config.mk
5 include $(XEN_ROOT)/docs/Docs.mk
8 TEX := $(wildcard *.tex)
9 EPS := $(wildcard *.eps)
10 EPSDOT := $(patsubst %.dot,%.eps,$(wildcard *.dot))
12 .PHONY: all
13 all: build
15 .PHONY: build
16 build: xenapi.pdf xenapi.ps
18 install:
19 $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/ps
20 $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/pdf
22 cp xenapi.ps $(DESTDIR)$(pkgdocdir)/ps
23 cp xenapi.pdf $(DESTDIR)$(pkgdocdir)/pdf
26 xenapi.dvi: $(TEX) $(EPS) $(EPSDOT)
27 $(LATEX) xenapi.tex
28 $(LATEX) xenapi.tex
29 rm -f *.aux *.log
31 %.pdf: %.ps
32 $(PS2PDF) $< $@
34 %.ps: %.dvi
35 $(DVIPS) $< -o $@
37 %.eps: %.dot
38 $(DOT) -Tps $< >$@
40 .PHONY: clean
41 clean:
42 rm -f *.pdf *.ps *.dvi *.aux *.log $(EPSDOT)