]> git.sur5r.net Git - bacula/docs/blob - docs/manual/Makefile
Document updates
[bacula/docs] / docs / manual / Makefile
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 developers: devtex devweb devpdf
23
24 .SUFFIXES:     .tex .html
25 .PHONY:
26 .DONTCARE:
27
28
29 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
43 devtex:
44         @cp -fp ${IMAGES}/hires/*.eps .
45         touch developers.idx developersi-general.tex
46         -latex -interaction=batchmode developers.tex
47         makeindex developers.idx >/dev/null 2>/dev/null
48         -latex -interaction=batchmode developers.tex
49         @rm -f *.eps *.old
50
51 pdf:
52         @echo "Making pdfm"
53         @cp -fp ${IMAGES}/hires/*.eps .
54         dvipdfm -p a4 bacula.dvi
55 # Rename for loading on Web site
56         @cp -f bacula.pdf dev-bacula.pdf
57         @rm -f *.eps *.old
58
59 dvipdf:
60         @echo "Making dvi to pdf"
61         @cp -fp ${IMAGES}/hires/*.eps .
62         dvipdf bacula.dvi bacula.pdf
63 # Rename for loading on Web site
64         @cp -f bacula.pdf dev-bacula.pdf
65         @rm -f *.eps *.old
66
67
68 devpdf:
69         @echo "Making developers pdf"
70         @cp -fp ${IMAGES}/hires/*.eps .
71         dvipdf developers.dvi developers.pdf
72         @rm -f *.eps *.old
73
74 devpdfm:
75         @echo "Making pdfm"
76         @cp -fp ${IMAGES}/hires/*.eps .
77         dvipdfm -p a4 developers.dvi
78         @rm -f *.eps *.old
79
80 html:
81         @echo " "
82         @echo "Making html"
83         @(if [ -e imagename_translations ] ; then \
84             ./translate_images.pl --from_meaningful_names bacula.html; \
85          fi)
86         @cp -fp ${IMAGES}/*.eps .
87         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
88         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
89                 -init_file latex2html-init.pl bacula >tex.out 2>&1
90 #       @grep -v "opening brace #41" tex.out >1
91 #       @mv -f 1 tex.out
92 #       @grep "unmatched" tex.out
93         @echo " "
94         ./translate_images.pl --to_meaningful_names bacula.html
95         @rm -f *.eps *.gif *.jpg
96         @echo "Done making html"
97
98 devhtml:
99         @echo "Making developers html"
100         @cp -fp ${IMAGES}/*.eps .
101         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
102                 developers >/dev/null
103         ./translate_images.pl developers.html
104         @rm -f *.eps *.gif *.jpg *.old
105
106 web:
107         @echo "Making web"
108         @mkdir -p bacula
109         @cp -fp ${IMAGES}/*.eps *.txt ${IMAGES}/*.png bacula
110         @rm -f bacula/xp-*.png
111         @(if [ -e bacula/imagename_translations ] ; then \
112            ./translate_images.pl --from_meaningful_names bacula/Bacula_Users_Guide.html; \
113          fi)
114         @rm -rf bacula/*.html
115         @cp -fp ${IMAGES}/*.eps .
116         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
117         @cp -fp ${IMAGES}/*.eps *.txt bacula
118         @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png
119         latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \
120                 -toc_stars -contents_in_nav -init_file latex2html-init.pl -white -notransparent bacula >tex.out 2>&1
121 #       grep -v "opening brace #41" tex.out >1
122 #       mv -f 1 tex.out
123 #       grep "unmatched" tex.out
124         ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html
125         cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html 
126         @rm -f *.eps *.gif *.jpg bacula/*.eps *.old bacula/*.old
127         @echo "Done making web"
128
129 devweb:
130         @echo "Making developers web"
131         @mkdir -p developers
132         @rm -f developers/*
133         @cp -fp ${IMAGES}/*.eps .
134         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
135         @cp -fp ${IMAGES}/*.eps ${IMAGES}/*.png developers/
136         @rm -f developers/next.eps developers/next.png developers/prev.eps developers/prev.png developers/up.eps developers/up.png
137         latex2html -split 5 -local_icons -t "Developer's Guide" -long_titles 4 \
138                 -contents_in_nav -toc_stars -white -notransparent developers >/dev/null
139         ./translate_images.pl developers/Developers_Guide.html
140         @cp -f developers/Developers_Guide.html developers/index.html
141         @rm -f *.eps *.gif *.jpg developers/*.eps  *.old
142
143 show:
144         xdvi bacula
145
146 texcheck:
147         ./check_tex.pl bacula.tex
148         ./check_tex.pl developers.tex
149
150 main_configs:
151         pic2graph -density 100 <main_configs.pic >main_configs.png
152
153 clean:
154         @rm -f 1 2 3
155         @rm -f *.png *.gif *.jpg *.eps
156         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
157         @rm -f *.html *.backup *.pdf *.ps *.dvi *.ilg *.lof *.lot
158         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
159         @rm -f *.dnd imagename_translations
160         @rm -f *.old WARNINGS *.out *.toc *.idx
161         @rm -f images.pl labels.pl internals.pl
162         @rm -rf bacula developers
163         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
164              baculai-console.tex baculai-general.tex images.tex developersi.tex
165
166
167 distclean:  clean
168         @rm -f bacula.html bacula.pdf dev-bacula.pdf developers.html developers.pdf