]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/en/main/Makefile
Fix bad control sequence
[bacula/docs] / docs / manuals / en / main / Makefile
index 99a09d2a4df8126e6623cd33346291f2b827dc51..290d784faf98febc257596511c187c88a57cd0bd 100644 (file)
@@ -34,7 +34,7 @@
 #
 DOC=main
 MAINDOC=Bacula_Main_Reference.html
-IMAGES=/home/kern/bacula/docs/docs/images
+IMAGES=../../../images
 DOCDIR=`pwd`
 TEXFILES=$(wildcard *tex)
 MAKEFORWEB=$(DOCDIR)/web.makefile
@@ -53,7 +53,7 @@ HTML_DEST_DIR=$(DESTDIR)/$(DOC)
 WWW_BUILD_DIR=$(DESTDIR)/www-$(DOC)
 #
 # LATEX compiler
-LATEX_TO_PDF= pdflatex --output-directory $(PDF_DEST_DIR)
+LATEX_TO_PDF=pdflatex --output-directory $(PDF_DEST_DIR)
 
 first_rule: all
 
@@ -64,9 +64,6 @@ all: pdftex web mini-clean
 .DONTCARE:
 
 
-updateversion:
-       @/bin/bash ../../update_version
-
 destdir:
        @echo
        @echo "Making output directories..."
@@ -79,22 +76,83 @@ pdfcovers:
        @(cd $(IMAGES)/svg ; make pdf)
        @echo "Covers done."
        @echo ""
+       @echo -n "Linking coverpage and background PDF format..."
+       @(cd $(SVGCOVERSDIR) ; make pdf)
+       @ln -sf `pwd`/${PDFCOVERSDIR}/${COVERNAME}.pdf `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
+       @echo "Done."
+
+pdfimages: 
+       @echo "Generating PDF images..."
+       @(cd ${IMAGES}/svg ; make pdf)
+       @echo "Done."
+
+pngimages:
+       @echo "Generating PNG images..."
+       @(cd ${IMAGES}/svg ; make png)
+       @echo "Done."
+
+epsimages:
+       @echo "Generating EPS images..."
+       @(cd ${IMAGES}/svg ; make eps)
+       @rm -rf ${IMAGES}/png
+       @rm -rf ${IMAGES}/pdf
+       @echo "Done."
+
+epscovers:
+       @echo -n "Linking coverpage and background EPS format..."
+       @(cd $(SVGCOVERSDIR) ; make eps)
+       @ln -sf `pwd`/${EPSCOVERSDIR}/${COVERNAME}.eps `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.eps
+       @rm -f `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
+       @echo "Done."
+
+commonfiles:
+       @echo "Making version `cat version.tex`"
+       @echo -n "Linking shared files..."
+       @(for L in $(LICENCES); do ln -sf $$L .; done)
+       @echo "Done"
 
-external-references: updateversion destdir pdfcovers
+external-references: destdir
        @echo " "
        @echo "Building external references for $(DOC)"
-       @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
+       @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}" > graphicspolicy.tex
        @export TEXINPUTS=.:../../../latex//: ; $(LATEX_TO_PDF) $(DOC)
        @rm -f $(PDF_DEST_DIR)/$(DOC).pdf
        @echo "$(DOC) external references done."
 
-pdftex: updateversion destdir pdfcovers
+pdftex: destdir
        @echo ""
        @echo "Making PDF manual with $(LATEX_TO_PDF)compile..."
-       @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
+       @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}" > graphicspolicy.tex
        @export TEXINPUTS=.:../../../latex//: ; $(LATEX_TO_PDF) $(DOC); makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null ; $(LATEX_TO_PDF) $(DOC); $(LATEX_TO_PDF) $(DOC)
        @echo "Done"
 
+pdflatex: external-references
+       @echo " "
+       @echo " Generating the PDF version of $(DOC)"
+       @echo "   building indexes"
+       @makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
+       @echo -n "   compiling..."
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @$(PDFLATEX) $(PDFLATEXOPTIONS) ${DOC}.tex
+       @echo "$(DOC).pdf generated."
+
+html:
+       @echo " "
+       @echo "Making html"
+       @ln -sf $(WEBCOMPILERFILE) $(BSYSCOMPILERFILE)
+#      @cp -fp ${IMAGES}/*.eps .
+#      @rm -f next.eps next.png prev.eps prev.png up.eps up.png
+       @(if [ -f imagename_translations ] ; then \
+           ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+        fi)
+       latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
+               -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
+       @(if [ -f imagename_translations ] ; then \
+           ./translate_images.pl --from_meaningful_names ${DOC}.html; \
+        fi)
+       (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
+       @echo "Done making html"
+
 
 web: mini-clean
        @echo "Making web"
@@ -152,8 +210,9 @@ clean:
        @rm -f ${DOC}i-*.tex
        @rm -rf $(WWW_BUILD_DIR)
 
-distclean:  clean
-       @rm -f ${DOC}.html ${DOC}.pdf
-       @rm -f Makefile version.tex
-       @rm -rf $(WWW_BUILD_DIR)
-       @rm -rf $(HTML_DEST_DIR)
+webclean:
+       @rm -rf $(WWWDIR)
+
+distclean:  webclean clean
+       @rm -f *.pdf
+       @rm -f images.pl labels.pl internals.pl