]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/console/Makefile.in
Makefile.in integrate now pdflatex compilation and EPS (.dvi) PDF (.pdf) coverpage
[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
44 first_rule: all
45
46 all: tex web dvipdf mini-clean
47
48 .SUFFIXES:     .tex .html
49 .PHONY:
50 .DONTCARE:
51
52
53 pdfcovers:
54         @echo -n "Linking coverpage and background PDF format..."
55         @ln -sf `pwd`/${COVERSDIR}/coverpage-book.v2.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-coverpagebackground.pdf
56         @ln -sf `pwd`/${COVERSDIR}/book-background.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-oddpagebackground.pdf
57         @ln -sf `pwd`/${COVERSDIR}/book-background.pdf `pwd`/${BSYSMANUALDIR}/bsysmanual-evenpagebackground.pdf
58         @echo "Done."
59
60 epscovers:
61         @echo -n "Linking coverpage and background EPS format..."
62         @ln -sf `pwd`/${COVERSDIR}/coverpage-book.v2.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-coverpagebackground.eps
63         @ln -sf `pwd`/${COVERSDIR}/book-background.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-oddpagebackground.eps
64         @ln -sf `pwd`/${COVERSDIR}/book-background.eps `pwd`/${BSYSMANUALDIR}/bsysmanual-evenpagebackground.eps
65         @echo "Done."
66
67 tex:    epscovers
68         @../../update_version
69         @echo "Making version `cat version.tex`"
70         @cp -fp ${IMAGES}/hires/*.eps .
71         @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
72              ${DOC}i-console.tex ${DOC}i-general.tex
73         latex -interaction=batchmode ${DOC}.tex
74         makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
75         latex -interaction=batchmode ${DOC}.tex
76
77 pdf:
78         @echo "Making pdfm"
79         @cp -fp ${IMAGES}/hires/*.eps .
80         dvipdfm -p a4 ${DOC}.dvi
81
82 pdflatex: pdfcovers
83         @echo "Making pdflatex"
84         @cp -fp ${IMAGES}/hires/*.eps .
85         pdflatex -interaction=batchmode ${DOC}.tex
86         makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
87         pdflatex -interaction=batchmode ${DOC}.tex
88         pdflatex -interaction=batchmode ${DOC}.tex
89
90 dvipdf:
91         @echo "Making dvi to pdf"
92         @cp -fp ${IMAGES}/hires/*.eps .
93         dvipdf ${DOC}.dvi ${DOC}.pdf
94
95 html:
96         @echo " "
97         @echo "Making html"
98         @cp -fp ${IMAGES}/*.eps .
99         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
100         @(if [ -f imagename_translations ] ; then \
101             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
102          fi)
103         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
104                 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
105         @(if [ -f imagename_translations ] ; then \
106             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
107          fi)
108         (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
109         @echo "Done making html"
110
111 web:
112         @echo "Making web"
113         @rm -rf ${DOC}
114         @mkdir -p ${DOC}
115         @cp -fp ${IMAGES}/*.eps .
116         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
117         @rm -f ${DOC}/xp-*.png
118         @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
119         latex2html -split 3 -local_icons -t "Bacula Console and Operators Guide" -long_titles 4 \
120                 -toc_stars -contents_in_nav -init_file latex2html-init.pl \
121                 -no_antialias -no_antialias_text \
122                 -white -notransparent ${DOC} >tex.out 2>&1
123         @(if [ -f imagename_translations ] ; then \
124             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
125          fi)
126         @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
127         @echo "Done making web"
128 show:
129         xdvi ${DOC}
130
131 texcheck:
132         ./check_tex.pl ${DOC}.tex
133
134 main_configs:
135         pic2graph -density 100 <main_configs.pic >main_configs.png
136
137 mini-clean:
138         @rm -f 1 2 3 *.tex~
139         @rm -f *.gif *.jpg *.eps
140         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
141         @rm -f *.backup *.ilg *.lof *.lot
142         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
143         @rm -f *.dnd *.old *.out 
144         @rm -f ${DOC}/*.gif ${DOC}/*.jpg ${DOC}/*.eps
145         @rm -f ${DOC}/*.aux ${DOC}/*.cp ${DOC}/*.fn ${DOC}/*.ky ${DOC}/*.log ${DOC}/*.pg
146         @rm -f ${DOC}/*.backup ${DOC}/*.ilg ${DOC}/*.lof ${DOC}/*.lot
147         @rm -f ${DOC}/*.cdx ${DOC}/*.cnd ${DOC}/*.ddx ${DOC}/*.ddn ${DOC}/*.fdx ${DOC}/*.fnd ${DOC}/*.ind ${DOC}/*.sdx ${DOC}/*.snd
148         @rm -f ${DOC}/*.dnd ${DOC}/*.old ${DOC}/*.out
149         @rm -f ${DOC}/WARNINGS
150
151
152 clean:
153         @rm -f 1 2 3 *.tex~
154         @rm -f *.png *.gif *.jpg *.eps
155         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
156         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
157         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
158         @rm -f *.dnd imagename_translations
159         @rm -f *.old WARNINGS *.out *.toc *.idx
160         @rm -f ${DOC}i-*.tex
161         @rm -rf ${DOC}
162
163
164 distclean: clean
165         @rm -f images.pl labels.pl internals.pl
166         @rm -f Makefile version.tex