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_Console_Operators_Gu.html
41 BSYSMANUALDIR=../../../bsysmanual
42 COVERSDIR=../../../covers/pdf
43 LICENSESDIR=../../licences
44 COVERNAME=console-coverpage
45 BSYSMANNAME=bsysmanual-coverpagebackground
46 LICENCES=$(wildcard $(LICENSESDIR)/*.tex)
50 all: tex web dvipdf mini-clean
57 @echo -n "Linking coverpage and background PDF format..."
58 @ln -sf `pwd`/${COVERSDIR}/${COVERNAME}.pdf `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
62 @echo "Generating PDF images..."
63 @(cd ${IMAGES}/svg ; make pdf)
67 @echo "Generating PNG images..."
68 @(cd ${IMAGES}/svg ; make png)
72 @echo "Generating EPS images..."
73 @(cd ${IMAGES}/svg ; make eps)
77 echo -n "Linking coverpage and background EPS format..."
78 (if [ ! -e ${COVERSDIR}/${COVERNAME}.eps ]; then \
80 pdf2ps ${COVERNAME}.pdf; \
81 ps2eps ${COVERNAME}.ps; \
84 ln -sf `pwd`/${COVERSDIR}/${COVERNAME}.eps `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.eps
85 rm `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
89 @echo -n "Linking shared files..."
90 @(for L in $(LICENCES); do ln -sf $$L .; done)
93 tex: pdfcovers epscovers epsimages commonfiles
95 @echo "Making version `cat version.tex`"
96 @cp -fp ${IMAGES}/hires/*.eps .
97 @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
98 ${DOC}i-console.tex ${DOC}i-general.tex
99 latex -interaction=batchmode ${DOC}.tex
100 makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
101 latex -interaction=batchmode ${DOC}.tex
105 @cp -fp ${IMAGES}/hires/*.eps .
106 dvipdfm -p a4 ${DOC}.dvi
108 pdflatex: pdfcovers pdfimages commonfiles
109 @echo "Making pdflatex"
110 pdflatex -interaction=batchmode ${DOC}.tex
111 makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
112 pdflatex -interaction=batchmode ${DOC}.tex
113 pdflatex -interaction=batchmode ${DOC}.tex
116 @echo "Making dvi to pdf"
117 @cp -fp ${IMAGES}/hires/*.eps .
118 dvipdf ${DOC}.dvi ${DOC}.pdf
123 @cp -fp ${IMAGES}/*.eps .
124 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
125 @(if [ -f imagename_translations ] ; then \
126 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
128 latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
129 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
130 @(if [ -f imagename_translations ] ; then \
131 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
133 (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
134 @echo "Done making html"
140 @cp -fp ${IMAGES}/*.eps .
141 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
142 @rm -f ${DOC}/xp-*.png
143 @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
144 latex2html -split 3 -local_icons -t "Bacula Console and Operators Guide" -long_titles 4 \
145 -toc_stars -contents_in_nav -init_file latex2html-init.pl \
146 -no_antialias -no_antialias_text \
147 -white -notransparent ${DOC} >tex.out 2>&1
148 @(if [ -f imagename_translations ] ; then \
149 ./translate_images.pl --from_meaningful_names ${DOC}.html; \
151 @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
152 @echo "Done making web"
157 ./check_tex.pl ${DOC}.tex
160 pic2graph -density 100 <main_configs.pic >main_configs.png
164 @rm -f *.gif *.jpg *.eps
165 @rm -f *.aux *.cp *.fn *.ky *.log *.pg
166 @rm -f *.backup *.ilg *.lof *.lot
167 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
168 @rm -f *.dnd *.old *.out
169 @rm -f ${DOC}/*.gif ${DOC}/*.jpg ${DOC}/*.eps
170 @rm -f ${DOC}/*.aux ${DOC}/*.cp ${DOC}/*.fn ${DOC}/*.ky ${DOC}/*.log ${DOC}/*.pg
171 @rm -f ${DOC}/*.backup ${DOC}/*.ilg ${DOC}/*.lof ${DOC}/*.lot
172 @rm -f ${DOC}/*.cdx ${DOC}/*.cnd ${DOC}/*.ddx ${DOC}/*.ddn ${DOC}/*.fdx ${DOC}/*.fnd ${DOC}/*.ind ${DOC}/*.sdx ${DOC}/*.snd
173 @rm -f ${DOC}/*.dnd ${DOC}/*.old ${DOC}/*.out
174 @rm -f ${DOC}/WARNINGS
179 @rm -f *.png *.gif *.jpg *.eps
180 @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
181 @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
182 @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
183 @rm -f *.dnd imagename_translations
184 @rm -f *.old WARNINGS *.out *.toc *.idx
190 @rm -f images.pl labels.pl internals.pl
191 @rm -f Makefile version.tex