Imported Upstream version 23.2
[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 html:           user.ps tech.ps
40                 latex2html -split 2 -link 2 -toc_depth 2 user
41                 latex2html -split 1 -link 1 -toc_depth 1 tech
42
43 again:
44                 $(PDFLATEX) user
45                 $(PDFLATEX) tech
46
47 tidy:
48                 rm -f *~ *.toc *.aux *.log *.out
49
50 clean:          tidy
51                 rm -f *.ps *.dvi *.pdf
52                 rm -Rf user tech
53
54 distclean:      clean
55
56
57 dummies:
58                 for n in $(IMAGES); do echo '(omitted)' >$$n; done