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