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
40 MAINDOC=Bacula_Problem_Resolution_G.html
44 all: tex pdftex web mini-clean
51 @/bin/bash ../../update_version
54 @(cd ../../../images/svg ; make eps)
58 @echo "Making covers for $(DOC)"
59 @(cd ../../../images/svg ; make pdf)
63 external-references: pdfcovers
65 @echo "Building external references for $(DOC)"
66 @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
67 @export TEXINPUTS=.:../../../latex//: ; pdflatex $(DOC)
68 @echo "$(DOC) external references done."
70 pdftex: updateversion pdfcovers
72 @echo "Making PDF manual with PDFLATEX compile..."
73 @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
74 @export TEXINPUTS=.:../../../latex//: ; pdflatex $(DOC); makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null ; pdflatex $(DOC); pdflatex $(DOC)
78 tex: updateversion epscovers
79 @echo "Making version `cat version.tex`"
80 @echo "\DeclareGraphicsExtensions{.png,.jpg,.jpeg,.eps}" > graphicspolicy.tex
81 @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
82 ${DOC}i-console.tex ${DOC}i-general.tex
83 latex -interaction=batchmode ${DOC}.tex
84 makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
85 latex -interaction=batchmode ${DOC}.tex
86 latex -interaction=batchmode ${DOC}.tex
90 @cp -fp ${IMAGES}/hires/*.eps .
91 dvipdfm -p a4 ${DOC}.dvi
94 @echo "Making dvi to pdf"
95 @cp -fp ${IMAGES}/hires/*.eps .
96 dvipdf ${DOC}.dvi ${DOC}.pdf
101 @cp -fp ${IMAGES}/*.eps .
102 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
103 @(if [ -f imagename_translations ] ; then \
104 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
106 latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
107 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
108 @(if [ -f imagename_translations ] ; then \
109 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
111 (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
112 @echo "Done making html"
118 @cp -fp ${IMAGES}/*.eps .
119 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
120 @rm -f ${DOC}/xp-*.png
121 @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
122 latex2html -split 3 -local_icons -t "Bacula Problem Resolution Guide" -long_titles 4 \
123 -toc_stars -contents_in_nav -init_file latex2html-init.pl \
124 -no_antialias -no_antialias_text \
125 -white -notransparent ${DOC} >tex.out 2>&1
126 @(if [ -f imagename_translations ] ; then \
127 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
129 @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
130 @echo "Done making web"
135 ./check_tex.pl ${DOC}.tex
138 pic2graph -density 100 <main_configs.pic >main_configs.png
142 @rm -f *.gif *.jpg *.eps
143 @rm -f *.aux *.cp *.fn *.ky *.log *.pg
144 @rm -f *.backup *.ilg *.lof *.lot
145 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
146 @rm -f *.dnd *.old *.out
147 @rm -f ${DOC}/*.gif ${DOC}/*.jpg ${DOC}/*.eps
148 @rm -f ${DOC}/*.aux ${DOC}/*.cp ${DOC}/*.fn ${DOC}/*.ky ${DOC}/*.log ${DOC}/*.pg
149 @rm -f ${DOC}/*.backup ${DOC}/*.ilg ${DOC}/*.lof ${DOC}/*.lot
150 @rm -f ${DOC}/*.cdx ${DOC}/*.cnd ${DOC}/*.ddx ${DOC}/*.ddn ${DOC}/*.fdx ${DOC}/*.fnd ${DOC}/*.ind ${DOC}/*.sdx ${DOC}/*.snd
151 @rm -f ${DOC}/*.dnd ${DOC}/*.old ${DOC}/*.out
152 @rm -f ${DOC}/WARNINGS
157 @rm graphicspolicy.tex
159 @rm -f *.png *.gif *.jpg *.eps
160 @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
161 @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
162 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
163 @rm -f *.dnd imagename_translations
164 @rm -f *.old WARNINGS *.out *.toc *.idx
170 @rm -f images.pl labels.pl internals.pl
171 @rm -f Makefile version.tex