]> git.sur5r.net Git - bacula/docs/blob - docs/manual/Makefile.in
Create separate bimagemgr manual document.
[bacula/docs] / docs / manual / 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 IMAGES=../images
21
22 first_rule: bacula
23
24 bacula: tex web html dvipdf mini-clean
25
26 .SUFFIXES:     .tex .html
27 .PHONY:
28 .DONTCARE:
29
30
31 tex:
32         @./update_version
33         @echo "Making version `cat version.tex`"
34         @cp -fp ${IMAGES}/hires/*.eps .
35         @touch baculai-dir.tex baculai-fd.tex baculai-sd.tex \
36              baculai-console.tex baculai-general.tex
37         -latex -interaction=batchmode bacula.tex
38         makeindex bacula.idx -o bacula.ind 2>/dev/null
39         makeindex bacula.ddx -o bacula.dnd >/dev/null 2>/dev/null
40         makeindex bacula.fdx -o bacula.fnd >/dev/null 2>/dev/null
41         makeindex bacula.sdx -o bacula.snd >/dev/null 2>/dev/null
42         makeindex bacula.cdx -o bacula.cnd >/dev/null 2>/dev/null
43         -latex -interaction=batchmode bacula.tex
44         -latex -interaction=batchmode bimagemgr.tex
45
46 pdf:
47         @echo "Making pdfm"
48         @cp -fp ${IMAGES}/hires/*.eps .
49         dvipdfm -p a4 bacula.dvi
50         dvipdfm -p a4 bimagemgr.dvi
51
52 dvipdf:
53         @echo "Making dvi to pdf"
54         @cp -fp ${IMAGES}/hires/*.eps .
55         dvipdf bacula.dvi bacula.pdf
56         dvipdf bimagemgr.dvi bimagemgr.pdf
57
58 html:
59         @echo " "
60         @echo "Making html"
61         @cp -fp ${IMAGES}/*.eps .
62         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
63         @(if [ -f imagename_translations ] ; then \
64             ./translate_images.pl --from_meaningful_names bacula.html; \
65          fi)
66         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
67                 -init_file latex2html-init.pl bacula >tex.out 2>&1
68         ./translate_images.pl --to_meaningful_names bacula.html
69         @echo "Done making html"
70
71 web:
72         @echo "Making web"
73         @mkdir -p bacula
74         @cp -fp ${IMAGES}/*.eps .
75         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
76         @cp -fp ${IMAGES}/*.eps *.txt bacula
77         @cp -fp ${IMAGES}/*.eps *.txt ${IMAGES}/*.png bacula
78         @rm -f bacula/xp-*.png
79         @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png
80         @rm -rf bacula/*.html
81         latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \
82                 -toc_stars -contents_in_nav -init_file latex2html-init.pl -white -notransparent bacula >tex.out 2>&1
83         ./translate_images.pl --to_meaningful_names bacula/Bacula_Users_Guide.html
84         cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html 
85         @echo "Done making web"
86 show:
87         xdvi bacula
88
89 texcheck:
90         ./check_tex.pl bacula.tex
91
92 main_configs:
93         pic2graph -density 100 <main_configs.pic >main_configs.png
94
95 mini-clean:
96         @rm -f 1 2 3 *.tex~
97         @rm -f *.gif *.jpg *.eps
98         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
99         @rm -f *.backup *.ilg *.lof *.lot
100         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
101         @rm -f *.dnd *.old *.out 
102         @rm -f bacula/*.gif bacula/*.jpg bacula/*.eps
103         @rm -f bacula/*.aux bacula/*.cp bacula/*.fn bacula/*.ky bacula/*.log bacula/*.pg
104         @rm -f bacula/*.backup bacula/*.ilg bacula/*.lof bacula/*.lot
105         @rm -f bacula/*.cdx bacula/*.cnd bacula/*.ddx bacula/*.ddn bacula/*.fdx bacula/*.fnd bacula/*.ind bacula/*.sdx bacula/*.snd
106         @rm -f bacula/*.dnd bacula/*.old bacula/*.out
107         @rm -f bacula/WARNINGS
108
109
110 clean:
111         @rm -f 1 2 3 *.tex~
112         @rm -f *.png *.gif *.jpg *.eps
113         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
114         @rm -f *.html *.backup *.ps *.dvi *.ilg *.lof *.lot
115         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
116         @rm -f *.dnd imagename_translations
117         @rm -f *.old WARNINGS *.out *.toc *.idx
118         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
119              baculai-console.tex baculai-general.tex images.tex
120
121
122 distclean:
123         @rm -f 1 2 3 *.tex~
124         @rm -f *.gif *.jpg *.eps
125         @rm -f *.aux *.cp *.fn *.ky *.log *.pg
126         @rm -f  *.backup *.ps *.dvi *.ilg *.lof *.lot
127         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
128         @rm -f *.dnd imagename_translations
129         @rm -f *.old WARNINGS *.out *.toc *.idx
130         @rm -f images.pl labels.pl internals.pl
131         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
132              baculai-console.tex baculai-general.tex images.tex