DOC=console
MAINDOC=Bacula_Console_Operators_Gu.html
+BSYSMANUALDIR=../../../bsysmanual
+COVERSDIR=../../../covers/pdf
first_rule: all
.DONTCARE:
-tex:
+pdfcovers:
+ @echo -n "Linking coverpage and background PDF format..."
+ @ln -sf `pwd`/${COVERSDIR}/coverpage-book.v2.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-coverpagebackground.pdf
+ @ln -sf `pwd`/${COVERSDIR}/book-background.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-oddpagebackground.pdf
+ @ln -sf `pwd`/${COVERSDIR}/book-background.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-evenpagebackground.pdf
+ @echo "Done."
+
+epscovers:
+ @echo -n "Linking coverpage and background EPS format..."
+ @ln -sf `pwd`/${COVERSDIR}/coverpage-book.v2.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-coverpagebackground.eps
+ @ln -sf `pwd`/${COVERSDIR}/book-background.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-oddpagebackground.eps
+ @ln -sf `pwd`/${COVERSDIR}/book-background.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-evenpagebackground.eps
+ @echo "Done."
+
+tex: epscovers
@../../update_version
@echo "Making version `cat version.tex`"
@cp -fp ${IMAGES}/hires/*.eps .
@cp -fp ${IMAGES}/hires/*.eps .
dvipdfm -p a4 ${DOC}.dvi
+pdflatex: pdfcovers
+ @echo "Making pdflatex"
+ @cp -fp ${IMAGES}/hires/*.eps .
+ pdflatex -interaction=batchmode ${DOC}.tex
+ makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+ pdflatex -interaction=batchmode ${DOC}.tex
+ pdflatex -interaction=batchmode ${DOC}.tex
+
dvipdf:
@echo "Making dvi to pdf"
@cp -fp ${IMAGES}/hires/*.eps .