]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/console/Makefile.in
Remove unnecessary files. They are automatically generated by a general make
[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
42 MANUALSDIR=../..
43 BSYSMANUALDIR=../../../bsysmanual
44 COVERSDIR=../../../covers
45 PDFCOVERSDIR=$(COVERSDIR)/pdf
46 SVGCOVERSDIR=$(COVERSDIR)/svg
47 EPSCOVERSDIR=$(COVERSDIR)/eps
48 LICENSESDIR=$(MANUALSDIR)/licences
49 COVERNAME=coverpage-console
50 BSYSMANNAME=bsysmanual-coverpagebackground
51 LICENCES=$(wildcard $(LICENSESDIR)/*.tex)
52 BSYSCOMPILERFILE=bsys-compiler-mode.tex
53 PDFCOMPILERFILE=$(MANUALSDIR)/bsys-pdflatex-mode.tex
54 TEXCOMPILERFILE=$(MANUALSDIR)/bsys-latex-mode.tex
55 WEBCOMPILERFILE=$(MANUALSDIR)/bsys-web-mode.tex
56
57 first_rule: all
58
59 all: pdflatex tex web mini-clean
60
61 .SUFFIXES:     .tex .html
62 .PHONY:
63 .DONTCARE:
64
65 pdfcovers:
66         @echo -n "Linking coverpage and background PDF format..."
67         @(cd $(SVGCOVERSDIR) ; make pdf)
68         @ln -sf `pwd`/${PDFCOVERSDIR}/${COVERNAME}.pdf `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
69         @echo "Done."
70
71 pdfimages: 
72         @echo "Generating PDF images..."
73         @(cd ${IMAGES}/svg ; make pdf)
74         @echo "Done."
75
76 pngimages:
77         @echo "Generating PNG images..."
78         @(cd ${IMAGES}/svg ; make png)
79         @echo "Done."
80
81 epsimages:
82         @echo "Generating EPS images..."
83         @(cd ${IMAGES}/svg ; make eps)
84         @rm -rf ${IMAGES}/png
85         @rm -rf ${IMAGES}/pdf
86         @echo "Done."
87
88 epscovers:
89         @echo -n "Linking coverpage and background EPS format..."
90         @(cd $(SVGCOVERSDIR) ; make eps)
91         @ln -sf `pwd`/${EPSCOVERSDIR}/${COVERNAME}.eps `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.eps
92         @rm -f `pwd`/${BSYSMANUALDIR}/${BSYSMANNAME}.pdf
93         @echo "Done."
94
95 commonfiles:
96         @echo -n "Linking shared files..."
97         @(for L in $(LICENCES); do ln -sf $$L .; done)
98         @echo "Done"
99
100 tex:    epscovers epsimages commonfiles
101         @../../update_version
102         @echo "Making version `cat version.tex`"
103         @rm -rf $(IMAGES)/pdf
104         @rm -rf $(IMAGES)/png
105 #       @cp -fp ${IMAGES}/hires/*.eps .
106         @ln -sf $(TEXCOMPILERFILE) $(BSYSCOMPILERFILE)
107         @touch ${DOC}i-dir.tex ${DOC}i-fd.tex ${DOC}i-sd.tex \
108              ${DOC}i-console.tex ${DOC}i-general.tex
109         latex -interaction=batchmode ${DOC}.tex
110         makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
111         latex -interaction=batchmode ${DOC}.tex
112
113 pdf:
114         @echo "Making pdfm"
115         @cp -fp ${IMAGES}/hires/*.eps .
116         dvipdfm -p a4 ${DOC}.dvi
117
118 pdflatex: pdfcovers pdfimages commonfiles
119         @ln -sf $(PDFCOMPILERFILE) $(BSYSCOMPILERFILE)
120         pdflatex -interaction=batchmode ${DOC}.tex
121         makeindex ${DOC}.idx -o ${DOC}.ind 2>/dev/null
122         pdflatex -interaction=batchmode ${DOC}.tex
123         pdflatex -interaction=batchmode ${DOC}.tex
124
125 dvipdf:
126         @echo "Making dvi to pdf"
127         @cp -fp ${IMAGES}/hires/*.eps .
128         dvipdf ${DOC}.dvi ${DOC}.pdf
129
130 html:
131         @echo " "
132         @echo "Making html"
133         @ln -sf $(WEBCOMPILERFILE) $(BSYSCOMPILERFILE)
134 #       @cp -fp ${IMAGES}/*.eps .
135 #       @rm -f next.eps next.png prev.eps prev.png up.eps up.png
136         @(if [ -f imagename_translations ] ; then \
137             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
138          fi)
139         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
140                 -init_file latex2html-init.pl ${DOC} >tex.out 2>&1
141         @(if [ -f imagename_translations ] ; then \
142             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
143          fi)
144         (cd ${DOC}; for i in *.png ; do cp -fp ../${IMAGES}/$${i} .; done)
145         @echo "Done making html"
146
147 web:
148         @echo "Making web"
149         @rm -rf ${DOC}
150         @mkdir -p ${DOC}
151         @cp -fp ${IMAGES}/*.eps .
152         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
153         @rm -f ${DOC}/xp-*.png
154         @rm -f ${DOC}/next.eps ${DOC}/next.png ${DOC}/prev.eps ${DOC}/prev.png ${DOC}/up.eps ${DOC}/up.png
155         latex2html -split 3 -local_icons -t "Bacula Console and Operators Guide" -long_titles 4 \
156                 -toc_stars -contents_in_nav -init_file latex2html-init.pl \
157                 -no_antialias -no_antialias_text \
158                 -white -notransparent ${DOC} >tex.out 2>&1
159         @(if [ -f imagename_translations ] ; then \
160             ./translate_images.pl --from_meaningful_names ${DOC}.html; \
161          fi)
162         @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
163         @echo "Done making web"
164 show:
165         xdvi ${DOC}
166
167 texcheck:
168         ./check_tex.pl ${DOC}.tex
169
170 main_configs:
171         pic2graph -density 100 <main_configs.pic >main_configs.png
172
173 mini-clean:
174         @rm -f 1 2 3 *.tex~
175         @rm -f *.gif *.jpg *.eps
176         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
177         @rm -f *.backup *.ilg *.lof *.lot
178         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
179         @rm -f *.dnd *.old *.out 
180         @rm -f ${DOC}/*.gif ${DOC}/*.jpg ${DOC}/*.eps
181         @rm -f ${DOC}/*.aux ${DOC}/*.cp ${DOC}/*.fn ${DOC}/*.ky ${DOC}/*.log ${DOC}/*.pg
182         @rm -f ${DOC}/*.backup ${DOC}/*.ilg ${DOC}/*.lof ${DOC}/*.lot
183         @rm -f ${DOC}/*.cdx ${DOC}/*.cnd ${DOC}/*.ddx ${DOC}/*.ddn ${DOC}/*.fdx ${DOC}/*.fnd ${DOC}/*.ind ${DOC}/*.sdx ${DOC}/*.snd
184         @rm -f ${DOC}/*.dnd ${DOC}/*.old ${DOC}/*.out
185         @rm -f ${DOC}/WARNINGS
186
187
188 clean:
189         @rm -f 1 2 3 *.tex~
190         @rm -f *.png *.gif *.jpg *.eps
191         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
192         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
193         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
194         @rm -f *.dnd imagename_translations
195         @rm -f *.old WARNINGS *.out *.toc *.idx
196         @rm -f ${DOC}i-*.tex
197         @rm -rf ${DOC}
198
199
200 distclean: clean
201         @rm -f images.pl labels.pl internals.pl
202         @rm -f Makefile version.tex