]> git.sur5r.net Git - bacula/docs/blob - docs/manual/Makefile.in
Updates
[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 mini-clean
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
41 pdf:
42         @echo "Making pdfm"
43         @cp -fp ${IMAGES}/hires/*.eps .
44         dvipdfm -p a4 bacula.dvi
45
46 dvipdf:
47         @echo "Making dvi to pdf"
48         @cp -fp ${IMAGES}/hires/*.eps .
49         dvipdf bacula.dvi bacula.pdf
50
51 html:
52         @echo " "
53         @echo "Making html"
54         @cp -fp ${IMAGES}/*.eps .
55         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
56         @(if [ -f imagename_translations ] ; then \
57             ./translate_images.pl --from_meaningful_names bacula.html; \
58          fi)
59         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
60                 -init_file latex2html-init.pl bacula >tex.out 2>&1
61         ./translate_images.pl --to_meaningful_names bacula.html
62         @echo "Done making html"
63
64 web:
65         @echo "Making web"
66         @mkdir -p bacula
67         @cp -fp ${IMAGES}/*.eps .
68         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
69         @cp -fp ${IMAGES}/*.eps *.txt bacula
70         @cp -fp ${IMAGES}/*.eps *.txt ${IMAGES}/*.png bacula
71         @rm -f bacula/xp-*.png
72         @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png
73         @rm -rf bacula/*.html
74         latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \
75                 -toc_stars -contents_in_nav -init_file latex2html-init.pl -white -notransparent bacula >tex.out 2>&1
76         ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html
77         cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html 
78         @echo "Done making web"
79 show:
80         xdvi bacula
81
82 texcheck:
83         ./check_tex.pl bacula.tex
84
85 main_configs:
86         pic2graph -density 100 <main_configs.pic >main_configs.png
87
88 mini-clean:
89         @rm -f 1 2 3 *.tex~
90         @rm -f *.gif *.jpg *.eps
91         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
92         @rm -f *.backup *.ilg *.lof *.lot
93         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
94         @rm -f *.dnd *.old *.out 
95         @rm -f bacula/*.gif bacula/*.jpg bacula/*.eps
96         @rm -f bacula/*.aux bacula/*.cp bacula/*.fn bacula/*.ky bacula/*.log bacula/*.pg
97         @rm -f bacula/*.backup bacula/*.ilg bacula/*.lof bacula/*.lot
98         @rm -f bacula/*.cdx bacula/*.cnd bacula/*.ddx bacula/*.ddn bacula/*.fdx bacula/*.fnd bacula/*.ind bacula/*.sdx bacula/*.snd
99         @rm -f bacula/*.dnd bacula/*.old bacula/*.out
100         @rm -f bacula/WARNINGS
101
102
103 clean:
104         @rm -f 1 2 3 *.tex~
105         @rm -f *.png *.gif *.jpg *.eps
106         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
107         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
108         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
109         @rm -f *.dnd imagename_translations
110         @rm -f *.old WARNINGS *.out *.toc *.idx
111         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
112              baculai-console.tex baculai-general.tex images.tex
113
114
115 distclean:
116         @rm -f 1 2 3 *.tex~
117         @rm -f *.gif *.jpg *.eps
118         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
119         @rm -f  *.backup *.ps *.dvi *.ilg *.lof *.lot
120         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
121         @rm -f *.dnd imagename_translations
122         @rm -f *.old WARNINGS *.out *.toc *.idx
123         @rm -f images.pl labels.pl internals.pl
124         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
125              baculai-console.tex baculai-general.tex images.tex