88690e303baa4870c805e5f2d3d8994ccedad7e6
[rrq/maintain_lilo.git] / doc / Makefile
1 # -*- makefile -*-
2
3 LATEX=latex
4 PDFLATEX=pdflatex
5 RLATEX=./rlatex
6 FIG2DEV=fig2dev
7 SHELL=/bin/sh
8
9 IMAGES=bootloader.tex map.tex image.tex parameter.tex other.tex
10
11 .SUFFIXES:      .fig .tex .dvi .ps
12
13 .fig.tex:
14                 $(FIG2DEV) -L latex $*.fig $*.tex
15
16 .tex.dvi:
17                 $(RLATEX) $*
18
19 all:            user.dvi tech.dvi user.pdf tech.pdf
20
21 user.ps:        user.dvi
22                 dvips -o user.ps user.dvi
23
24 tech.ps:        tech.dvi
25                 dvips -o tech.ps tech.dvi
26
27 user.dvi:       user.tex
28
29 tech.dvi:       tech.tex $(IMAGES)
30
31 user.pdf:       user.dvi
32                 $(PDFLATEX) user
33                 $(PDFLATEX) user
34
35 tech.pdf:       tech.dvi
36                 $(PDFLATEX) tech
37                 $(PDFLATEX) tech
38
39 ../doc/README:  user.tex
40                 perl t2a.pl <user.tex >../doc/README || { rm -f ../doc/README; exit 1; }
41
42 html:           user.ps tech.ps
43                 latex2html -split 2 -link 2 -toc_depth 2 user
44                 latex2html -split 1 -link 1 -toc_depth 1 tech
45
46 again:
47                 $(PDFLATEX) user
48                 $(PDFLATEX) tech
49
50 tidy:
51                 rm -f *~ *.toc *.aux *.log *.out
52
53 clean:          tidy
54                 rm -f *.ps *.dvi *.pdf
55                 rm -Rf user tech
56
57 distclean:      clean
58
59
60 dummies:
61                 for n in $(IMAGES); do echo '(omitted)' >$$n; done