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