ia64/xen-unstable

view docs/Makefile @ 2860:61d139354129

bitkeeper revision 1.1159.157.1 (418934b0-qzq3Mn8ZcEAFEUYycHb2Q)

Device section fixes.
author akw27@labyrinth.cl.cam.ac.uk
date Wed Nov 03 19:42:40 2004 +0000 (2004-11-03)
parents 2c276f6ac53c
children e4fcab92dac6
line source
2 DOC_TEX := $(wildcard src/*.tex)
3 DOC_PS := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX))
4 DOC_PDF := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX))
5 DOC_HTML := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX))
7 GFX = $(patsubst %.obj, %.eps, $(wildcard figs/*.obj))
8 GFX += $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
10 all: ps pdf html
11 rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
13 ps: $(DOC_PS)
15 pdf: $(DOC_PDF)
17 html: $(DOC_HTML)
19 clean:
20 rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~
21 rm -rf *.ilg *.log *.ind *.toc *.bak core
22 rm -rf $(GFX) ps pdf html
24 install: all
25 rm -rf $(prefix)/usr/share/doc/xen
26 mkdir -p $(prefix)/usr/share/doc/xen
27 cp -dR ps $(prefix)/usr/share/doc/xen
28 cp -dR pdf $(prefix)/usr/share/doc/xen
29 cp -dR html $(prefix)/usr/share/doc/xen
31 pdf/%.pdf: ps/%.ps
32 mkdir -p pdf ; ps2pdf $< $@
34 ps/%.ps: %.dvi
35 mkdir -p ps ; dvips -Ppdf -G0 -o $@ $<
37 %.dvi: src/%.tex $(GFX)
38 latex $< >/dev/null
39 if [ -e $*.toc ] ; then latex $< >/dev/null ; fi
41 %.eps: %.fig
42 fig2dev -L eps $< $@
44 %.eps: %.obj
45 tgif -print -color -eps $<
47 html/%/index.html: src/%.tex
48 mkdir -p html/$*
49 latex2html -split 0 -show_section_numbers -toc_depth 3 -nonavigation \
50 -noinfo -math -dir html/$* $< 1>/dev/null 2>/dev/null