]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/console/Makefile.in
console manual corrections
[bacula/docs] / docs / manuals / en / console / Makefile.in
1 #
2 #
3 #  Makefile for LaTeX  
4 #
5 # To build everything do
6 #    make tex
7 #    make web
8 #    make html
9 #    make dvipdf
10 #
11 # or simply
12 #
13 #    make
14 #
15 # for rapid development do:
16 #    make tex
17 #    make show
18 #
19 #
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:
23 #
24 #   cd docs/manual
25 #   make tex
26 #   latex bacula.tex
27 #
28 #  typically the latex command will stop indicating the error (e.g. a
29 #  missing \ in front of a _ or a missing { or ] ...
30 #
31 #  The following characters must be preceded by a backslash
32 #    to be entered as printable characters:
33
34 #    # $ % & ~ _ ^ \ { }
35 #
36
37 IMAGES=../../../images
38
39 DOC=console
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)
47
48 first_rule: all
49
50 all: tex web dvipdf mini-clean
51
52 .SUFFIXES:     .tex .html
53 .PHONY:
54 .DONTCARE:
55
56 pdfcovers:
57         @echo -n "Linking coverpage and background PDF format..."
58         @ln -sf `pwd`/${COVERSDIR}/${COVERNAME}.pdf `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
59         @echo "Done."
60
61 pdfimages: 
62         @echo "Generating PDF images..."
63         @(cd ${IMAGES}/svg ; make pdf)
64         @echo "Done."
65
66 pngimages:
67         @echo "Generating PNG images..."
68         @(cd ${IMAGES}/svg ; make png)
69         @echo "Done."
70
71 epsimages:
72         @echo "Generating EPS images..."
73         @(cd ${IMAGES}/svg ; make eps)
74         @echo "Done."
75
76 epscovers:
77         echo -n "Linking coverpage and background EPS format..."
78         (if [ ! -e ${COVERSDIR}/${COVERNAME}.eps ]; then \
79                 cd ${COVERSDIR} ; \
80                 pdf2ps ${COVERNAME}.pdf; \
81                 ps2eps ${COVERNAME}.ps; \
82                 rm ${COVERNAME}.ps; \
83         fi)
84         ln -sf `pwd`/${COVERSDIR}/${COVERNAME}.eps `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.eps
85         rm `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
86         echo "Done."
87
88 commonfiles:
89         @echo -n "Linking shared files..."
90         @(for L in $(LICENCES); do ln -sf $$L .; done)
91         @echo "Done"
92
93 tex:    pdfcovers epscovers epsimages commonfiles
94         @../../update_version
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
102
103 pdf:
104         @echo "Making pdfm"
105         @cp -fp ${IMAGES}/hires/*.eps .
106         dvipdfm -p a4 ${DOC}.dvi
107
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
114
115 dvipdf:
116         @echo "Making dvi to pdf"
117         @cp -fp ${IMAGES}/hires/*.eps .
118         dvipdf ${DOC}.dvi ${DOC}.pdf
119
120 html:
121         @echo " "
122         @echo "Making html"
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; \
127          fi)
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; \
132          fi)
133         (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
134         @echo "Done making html"
135
136 web:
137         @echo "Making web"
138         @rm -rf ${DOC}
139         @mkdir -p ${DOC}
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; \
150          fi)
151         @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
152         @echo "Done making web"
153 show:
154         xdvi ${DOC}
155
156 texcheck:
157         ./check_tex.pl ${DOC}.tex
158
159 main_configs:
160         pic2graph -density 100 <main_configs.pic >main_configs.png
161
162 mini-clean:
163         @rm -f 1 2 3 *.tex~
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
175
176
177 clean:
178         @rm -f 1 2 3 *.tex~
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
185         @rm -f ${DOC}i-*.tex
186         @rm -rf ${DOC}
187
188
189 distclean: clean
190         @rm -f images.pl labels.pl internals.pl
191         @rm -f Makefile version.tex