5 # To build everything do
15 # for rapid development do:
20 # If you are having problems getting "make" to work, debugging it is
21 # easier if can see the output from latex, which is normally redirected
22 # to /dev/null. To see it, do the following:
28 # typically the latex command will stop indicating the error (e.g. a
29 # missing \ in front of a _ or a missing { or ] ...
31 # The following characters must be preceded by a backslash
32 # to be entered as printable characters:
37 IMAGES=../../../images
43 all: tex web dvipdf mini-clean
52 @echo "Making version `cat version.tex`"
53 @cp -fp ${IMAGES}/hires/*.eps .
54 @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
55 ${DOC}i-console.tex ${DOC}i-general.tex
56 latex -interaction=batchmode ${DOC}.tex
57 makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
58 makeindex ${DOC}.ddx -o ${DOC}.dnd >/dev/null 2>/dev/null
59 makeindex ${DOC}.fdx -o ${DOC}.fnd >/dev/null 2>/dev/null
60 makeindex ${DOC}.sdx -o ${DOC}.snd >/dev/null 2>/dev/null
61 makeindex ${DOC}.cdx -o ${DOC}.cnd >/dev/null 2>/dev/null
62 latex -interaction=batchmode ${DOC}.tex
66 @cp -fp ${IMAGES}/hires/*.eps .
67 dvipdfm -p a4 ${DOC}.dvi
70 @echo "Making dvi to pdf"
71 @cp -fp ${IMAGES}/hires/*.eps .
72 dvipdf ${DOC}.dvi ${DOC}.pdf
77 @cp -fp ${IMAGES}/*.eps .
78 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
79 @(if [ -f imagename_translations ] ; then \
80 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
82 latex2html -white -no_subdir -split 0 -toc_stars -white \
83 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
84 ./translate_images.pl --to_meaningful_names ${DOC}.html
85 (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
86 @echo "Done making html"
91 @cp -fp ${IMAGES}/*.eps .
92 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
93 @cp -fp ${IMAGES}/*.eps ${DOC}/
94 @cp -fp ${IMAGES}/*.eps ${IMAGES}/*.png ${DOC}/
95 @rm -f ${DOC}/xp-*.png
96 @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
98 latex2html -split 3 -local_icons -t "Bacula Concepts and Overview Guide" -long_titles 4 \
99 -toc_stars -contents_in_nav -init_file latex2html-init.pl -white ${DOC} >tex.out 2>&1
100 ./translate_images.pl --to_meaningful_names ${DOC}/Bacula_Concep_Overvi_Guide.html
101 (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
102 @echo "Done making web"
107 ./check_tex.pl ${DOC}.tex
110 pic2graph -density 100 <main_configs.pic >main_configs.png
114 @rm -f *.gif *.jpg *.eps
115 @rm -f *.aux *.cp *.fn *.ky *.log *.pg
116 @rm -f *.backup *.ilg *.lof *.lot
117 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
118 @rm -f *.dnd *.old *.out
119 @rm -f ${DOC}/*.gif ${DOC}/*.jpg ${DOC}/*.eps
120 @rm -f ${DOC}/*.aux ${DOC}/*.cp ${DOC}/*.fn ${DOC}/*.ky ${DOC}/*.log ${DOC}/*.pg
121 @rm -f ${DOC}/*.backup ${DOC}/*.ilg ${DOC}/*.lof ${DOC}/*.lot
122 @rm -f ${DOC}/*.cdx ${DOC}/*.cnd ${DOC}/*.ddx ${DOC}/*.ddn ${DOC}/*.fdx ${DOC}/*.fnd ${DOC}/*.ind ${DOC}/*.sdx ${DOC}/*.snd
123 @rm -f ${DOC}/*.dnd ${DOC}/*.old ${DOC}/*.out
124 @rm -f ${DOC}/WARNINGS
129 @rm -f *.png *.gif *.jpg *.eps
130 @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
131 @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
132 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
133 @rm -f *.dnd imagename_translations
134 @rm -f *.old WARNINGS *.out *.toc *.idx
140 @rm -f images.pl labels.pl internals.pl
141 @rm -f Makefile version.tex