]> git.sur5r.net Git - bacula/docs/blob - docs/manual/Makefile.in
Update home page -- donations
[bacula/docs] / docs / manual / Makefile.in
1 #
2 #
3 #  Makefile for LaTeX  
4 #
5 # To build everything do
6 #    make tex
7 #    make web
8 #    make html
9 #    make dvipdf
10 #
11 # or simply
12 #
13 #    make
14 #
15
16 IMAGES=../images
17
18 first_rule: bacula
19
20 bacula: tex web html dvipdf
21
22 .SUFFIXES:     .tex .html
23 .PHONY:
24 .DONTCARE:
25
26
27 tex:
28         @./update_version
29         @echo "Making version `cat version.tex`"
30         @cp -fp ${IMAGES}/hires/*.eps .
31         @touch baculai-dir.tex baculai-fd.tex baculai-sd.tex \
32              baculai-console.tex baculai-general.tex
33         -latex -interaction=batchmode bacula.tex
34         makeindex bacula.idx -o bacula.ind 2>/dev/null
35         makeindex bacula.ddx -o bacula.dnd >/dev/null 2>/dev/null
36         makeindex bacula.fdx -o bacula.fnd >/dev/null 2>/dev/null
37         makeindex bacula.sdx -o bacula.snd >/dev/null 2>/dev/null
38         makeindex bacula.cdx -o bacula.cnd >/dev/null 2>/dev/null
39         -latex -interaction=batchmode bacula.tex
40         @rm -f *.eps *.old
41
42 pdf:
43         @echo "Making pdfm"
44         @cp -fp ${IMAGES}/hires/*.eps .
45         dvipdfm -p a4 bacula.dvi
46         @rm -f *.eps *.old
47
48 dvipdf:
49         @echo "Making dvi to pdf"
50         @cp -fp ${IMAGES}/hires/*.eps .
51         dvipdf bacula.dvi bacula.pdf
52         @rm -f *.eps *.old
53
54 html:
55         @echo " "
56         @echo "Making html"
57         @cp -fp ${IMAGES}/*.eps .
58         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
59         @(if [ -f imagename_translations ] ; then \
60             ./translate_images.pl --from_meaningful_names bacula.html; \
61          fi)
62         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
63                 -init_file latex2html-init.pl bacula >tex.out 2>&1
64         ./translate_images.pl --to_meaningful_names bacula.html
65         @rm -f *.eps *.gif *.jpg
66         @echo "Done making html"
67
68 web:
69         @echo "Making web"
70         @mkdir -p bacula
71         @cp -fp ${IMAGES}/*.eps .
72         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
73         @cp -fp ${IMAGES}/*.eps *.txt bacula
74         @cp -fp ${IMAGES}/*.eps *.txt ${IMAGES}/*.png bacula
75         @rm -f bacula/xp-*.png
76         @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png
77         @rm -rf bacula/*.html
78         latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \
79                 -toc_stars -contents_in_nav -init_file latex2html-init.pl -white -notransparent bacula >tex.out 2>&1
80         ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html
81         cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html 
82         @rm -f *.eps *.gif *.jpg bacula/*.eps *.old bacula/*.old
83         @echo "Done making web"
84
85 show:
86         xdvi bacula
87
88 texcheck:
89         ./check_tex.pl bacula.tex
90
91 main_configs:
92         pic2graph -density 100 <main_configs.pic >main_configs.png
93
94 clean:
95         @rm -f 1 2 3 *.tex~
96         @rm -f *.png *.gif *.jpg *.eps
97         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
98         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
99         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
100         @rm -f *.dnd imagename_translations
101         @rm -f *.old WARNINGS *.out *.toc *.idx
102         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
103              baculai-console.tex baculai-general.tex images.tex
104
105
106 distclean:
107         @rm -f 1 2 3 *.tex~
108         @rm -f *.gif *.jpg *.eps
109         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
110         @rm -f  *.backup *.ps *.dvi *.ilg *.lof *.lot
111         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
112         @rm -f *.dnd imagename_translations
113         @rm -f *.old WARNINGS *.out *.toc *.idx
114         @rm -f images.pl labels.pl internals.pl
115         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
116              baculai-console.tex baculai-general.tex images.tex