ia64/xen-unstable

view docs/Makefile @ 2910:e4fcab92dac6

bitkeeper revision 1.1159.1.388 (418cd911S4GHR23WmcIAsrA5z4WmNg)

Better latex2html options.
author kaf24@freefall.cl.cam.ac.uk
date Sat Nov 06 14:00:49 2004 +0000 (2004-11-06)
parents 2c276f6ac53c
children 519af10797e4 074d7606fd61 d8ba911dce48 0dc3b8b8c298
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 -numbered_footnotes -local_icons -noinfo -math -dir html/$* \
51 $< 1>/dev/null 2>/dev/null