]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/main/Makefile.in
Commit two patches from Philippe to cleanup the manuals
[bacula/docs] / docs / manuals / en / main / Makefile.in
1 #
2 #  Makefile for Bacula LaTeX  Manual
3 #
4 # To build everything do
5 #    make tex
6 #    make web
7 #    make html
8 #    make dvipdf
9 #
10 # or simply
11 #
12 #    make
13 #
14 # for rapid development do:
15 #    make tex
16 #    make show
17 #
18 #
19 # If you are having problems getting "make" to work, debugging it is
20 #  easier if can see the output from latex, which is normally redirected
21 #  to /dev/null.  To see it, do the following:
22 #
23 #   cd docs/manual
24 #   make tex
25 #   latex bacula.tex
26 #
27 #  typically the latex command will stop indicating the error (e.g. a
28 #  missing \ in front of a _ or a missing { or ] ...
29 #
30 #  The following characters must be preceded by a backslash
31 #    to be entered as printable characters:
32
33 #    # $ % & ~ _ ^ \ { }
34 #
35
36 IMAGES=../../../images
37
38 DOC=main
39 MAINDOC=Bacula_Main_Reference.html
40
41 first_rule: all
42
43 all: tex pdftex web mini-clean
44
45 .SUFFIXES:     .tex .html
46 .PHONY:
47 .DONTCARE:
48
49 updateversion:
50         @/bin/bash ../../update_version
51
52 epscovers:
53         @(cd ../../../images/svg ; make eps)
54
55 pdfcovers:
56         @echo ""
57         @echo "Making covers for $(DOC)"
58         @(cd ../../../images/svg ; make pdf)
59         @echo "Covers done."
60         @echo ""
61
62 external-references: pdfcovers
63         @echo " "
64         @echo "Building external references for $(DOC)"
65         @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}\n" > graphicspolicy.tex
66         @export TEXINPUTS=.:../../../latex//: ; pdflatex $(DOC)
67         @echo "$(DOC) external references done."
68
69 pdftex: updateversion pdfcovers
70         @echo ""
71         @echo "Making PDF manual with PDFLATEX compile..."
72         @echo "\DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg,.eps}" > graphicspolicy.tex
73         @export TEXINPUTS=.:../../../latex//: ; pdflatex $(DOC); makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null ; pdflatex $(DOC); pdflatex $(DOC)
74         @echo "Done"
75
76
77 tex:    updateversion epscovers
78         @echo "Making version `cat version.tex`"
79         @echo "\DeclareGraphicsExtensions{.png,.jpg,.jpeg,.eps}" > graphicspolicy.tex
80         @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
81              ${DOC}i-console.tex ${DOC}i-general.tex
82         latex -interaction=batchmode ${DOC}.tex
83         makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
84         latex -interaction=batchmode ${DOC}.tex
85         latex -interaction=batchmode ${DOC}.tex
86
87 pdf:
88         @echo "Making pdfm"
89         @cp -fp ${IMAGES}/hires/*.eps .
90         dvipdfm -p a4 ${DOC}.dvi
91
92 dvipdf:
93         @echo "Making dvi to pdf"
94         @cp -fp ${IMAGES}/hires/*.eps .
95         dvipdf ${DOC}.dvi ${DOC}.pdf
96
97 html:
98         @echo " "
99         @echo "Making html"
100         @cp -fp ${IMAGES}/*.eps .
101         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
102         @(if [ -f imagename_translations ] ; then \
103             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
104          fi)
105         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
106                 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
107         @(if [ -f imagename_translations ] ; then \
108             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
109          fi)
110         (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} . 2>/dev/null; done)
111         @echo "Done making html"
112
113 web:
114         @echo "Making web"
115         @rm -rf ${DOC}
116         @mkdir -p ${DOC}
117         @cp -fp ${IMAGES}/*.eps .
118         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
119         latex2html -split 3 -local_icons -t "Bacula Main Reference" -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 graphicspolicy.tex
154         @rm -f 1 2 3 *.tex~
155         @rm -f *.png *.gif *.jpg *.eps
156         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
157         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
158         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
159         @rm -f *.dnd imagename_translations
160         @rm -f *.old WARNINGS *.out *.toc *.idx
161         @rm -f ${DOC}i-*.tex
162         @rm -rf ${DOC}
163
164
165 distclean: clean
166         @rm -f images.pl labels.pl internals.pl
167         @rm -f Makefile version.tex