2 IMAGES=$(MANUALSDIR)/../images
4 MAINDOC=Bacula_Miscellaneous_Guide.html
5 BSYSMANUALDIR=$(MANUALSDIR)/../bsysmanual
6 COVERSDIR=$(MANUALSDIR)/../covers
7 PDFCOVERSDIR=$(COVERSDIR)/pdf
8 SVGCOVERSDIR=$(COVERSDIR)/svg
9 EPSCOVERSDIR=$(COVERSDIR)/eps
10 LICENSESDIR=$(MANUALSDIR)/licences
11 COVERNAME=coverpage-console
12 BSYSMANNAME=bsysmanual-coverpagebackground
13 LICENCES=$(wildcard $(LICENSESDIR)/*.tex)
14 BSYSCOMPILERFILE=bsys-compiler-mode.tex
15 PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
16 TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
17 WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
31 @echo -n "Generating PNG images..."
32 @(cd ${IMAGES}/svg ; make png)
34 @echo -n "Linking png images..."
35 @(for F in $(IMAGES)/*.png ;\
37 ln -sf $$F ./`basename $$F`; \
39 @(for F in $(IMAGES)/png/*.png ;\
41 ln -sf $$F ./`basename $$F`; \
48 @echo -n "Generating EPS images..."
49 @(cd ${IMAGES}/svg ; make eps)
51 @echo -n "Linking eps images..."
52 @(for F in $(IMAGES)/*.eps ;\
54 ln -sf $$F ./`basename $$F`; \
56 @(for F in $(IMAGES)/eps/*.eps ;\
58 ln -sf $$F ./`basename $$F`; \
64 @echo -n "Cleaning..."
65 @find . -type l -iname "*.eps" -exec rm {} \;
66 @find . -type l -iname "*.png" -exec rm {} \;
70 @(for F in $(LICENCES) ;\
72 cat $$F | sed -e 's/lstlisting/verbatim/g;s/lstinline/verb/g;s/\\lstset.*//g;s/bsysimage.{\(.*\)}{.*}{.*}/includegraphics{\1}/g;s/\\input{head.*//g;s/bsysmanual/book/g;s/Aenumerate/enumerate/g;s/\\raisebox{0.1ex}{\\textsuperscript\\textregistered}/\\textregistered/g;s/\[0.3\\linewidth\]/\[5cm\]/g;s/bsysitemize/itemize/g' > ./`basename $$F` ;\
74 cp $(MANUALSDIR)/bsys-web-mode.tex ./bsys-compiler-mode.tex
77 web: commonfiles epsimages pngimages
79 @rm -f next.eps next.png prev.eps prev.png up.eps up.png
80 @rm -f ${DOC}/xp-*.png
81 @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
82 latex2html -split 3 -local_icons -t "Bacula Miscellaneous Guide" -long_titles 4 \
83 -toc_stars -contents_in_nav -init_file latex2html-init.pl \
84 -no_antialias -no_antialias_text \
85 -white -notransparent ${DOC} >tex.out 2>&1
86 @(if [ -f imagename_translations ] ; then \
87 ./translate_images.pl --from_meaningful_names $(MAINDOC).html; \
89 @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
90 @echo "Done making web"