ia64/xen-unstable

view docs/Makefile @ 3597:ed902e5c4b49

bitkeeper revision 1.1159.212.62 (41fff40aESe4aWS82z_rLHeonXpxuQ)

More x86/64 stuff.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Tue Feb 01 21:26:34 2005 +0000 (2005-02-01)
parents f7ab8a19799b
children d8ba911dce48
line source
1 #!/usr/bin/make -f
3 INSTALL = install
4 INSTALL_DIR = $(INSTALL) -d -m0755
6 PS2PDF := ps2pdf
7 DVIPS := dvips
8 LATEX := latex
9 FIG2DEV := fig2dev
10 TGIF := tgif
11 LATEX2HTML := latex2html
13 pkgdocdir := /usr/share/doc/xen
15 DOC_TEX := $(wildcard src/*.tex)
16 DOC_PS := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX))
17 DOC_PDF := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX))
18 DOC_HTML := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX))
20 GFX = $(patsubst %.obj, %.eps, $(wildcard figs/*.obj))
21 GFX += $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
23 all: ps pdf html
24 rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
26 ps: $(DOC_PS)
28 pdf: $(DOC_PDF)
30 html: $(DOC_HTML)
32 clean:
33 rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~
34 rm -rf *.ilg *.log *.ind *.toc *.bak core
35 rm -rf $(GFX) ps pdf html
37 install: all
38 rm -rf $(DESTDIR)$(pkgdocdir)
39 $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)
40 cp -dR ps $(DESTDIR)$(pkgdocdir)
41 cp -dR pdf $(DESTDIR)$(pkgdocdir)
42 cp -dR html $(DESTDIR)$(pkgdocdir)
44 pdf/%.pdf: ps/%.ps
45 $(INSTALL_DIR) $(@D)
46 $(PS2PDF) $< $@.new
47 mv $@.new $@
49 ps/%.ps: %.dvi
50 $(INSTALL_DIR) $(@D)
51 $(DVIPS) -Ppdf -G0 -o $@.new $<
52 mv $@.new $@
54 %.dvi: src/%.tex $(GFX)
55 $(LATEX) $< >/dev/null
56 if [ -e $*.toc ] ; then $(LATEX) $< >/dev/null ; fi
58 %.eps: %.fig
59 $(FIG2DEV) -L eps $< $@
61 %.eps: %.obj
62 $(TGIF) -print -color -eps $<
64 html/%/index.html: src/%.tex
65 $(INSTALL_DIR) $(@D)
66 $(LATEX2HTML) -split 0 -show_section_numbers -toc_depth 3 -nonavigation \
67 -numbered_footnotes -local_icons -noinfo -math -dir $(@D) \
68 $< 1>/dev/null 2>/dev/null