]> git.sur5r.net Git - bacula/docs/blob - docs/developers/Makefile
Build latest manual + build developer's manual + update site
[bacula/docs] / docs / developers / Makefile
1 #
2 #
3 #  Makefile for LaTeX  
4 #
5 # To build everything do
6 #    make tex
7 #    make links
8 #    make all
9 #    make web
10 #    make html
11 #    make pdf
12 #
13 # or simply
14 #
15 #    make
16 #
17
18 IMAGES=../images
19
20 #  bacula  -- special case below
21 #  running -- special case below
22 #  developers -- special case below
23
24 #
25 # Note, these are all parts of the manual not in any
26 #  particular order (mostly alphabetic). The order they
27 #  appear in the manual is defined in bacula.tex
28 #
29 # Note also that certain of these chapters are in the 
30 #  bacula.tex manual, and others in the developers.tex 
31 #  manual.
32 #
33 MANUAL = \
34    autochangers bootstrap bugs catalog \
35    catmaintenance configure consoleconf console critical \
36    daemonprotocol dirdconf director disk faq filedconf file \
37    firewalls gpl install internaldb kaboom lesser \
38    license messagesres monitorconf mysql oldfileset pools \
39    porting postgresql progs projects quickstart recycling \
40    regression rescuefloppy rescue restore rpm-faq \
41    security spooling sqlite state storage \
42    storedconf strategies stunnel \
43    requirements supportedoses supporteddrives tapetesting \
44    thanks tips vars verify win32 \
45    daemonprotocol gui-interface \
46    supportedchangers \
47    md5 mediaformat mempool netprotocol porting smartall
48
49
50 first_rule: developers
51
52 bacula: tex web html dvipdf
53
54 # Note, assume bacula manual was built first
55 #  I've removed devhtml so that the resulting files
56 #  (images) do not conflict with the main manual
57 developers: devtex devweb devpdf
58
59 .SUFFIXES:     .tex .html
60 .PHONY:
61 .DONTCARE:
62
63
64 tex:
65         @cp -fp ${IMAGES}/hires/*.eps .
66         @touch baculai-dir.tex baculai-fd.tex baculai-sd.tex \
67              baculai-console.tex baculai-general.tex
68         -latex -interaction=batchmode bacula.tex
69         makeindex bacula.idx -o bacula.ind 2>/dev/null
70         makeindex bacula.ddx -o bacula.dnd >/dev/null 2>/dev/null
71         makeindex bacula.fdx -o bacula.fnd >/dev/null 2>/dev/null
72         makeindex bacula.sdx -o bacula.snd >/dev/null 2>/dev/null
73         makeindex bacula.cdx -o bacula.cnd >/dev/null 2>/dev/null
74         -latex -interaction=batchmode bacula.tex
75         @rm -f *.eps *.old
76
77
78 devtex:
79         @cp -fp ${IMAGES}/hires/*.eps .
80         touch developers.idx developersi-general.tex
81         -latex -interaction=batchmode developers.tex
82         makeindex developers.idx >/dev/null 2>/dev/null
83         -latex -interaction=batchmode developers.tex
84         @rm -f *.eps *.old
85
86 pdf:
87         @echo "Making pdfm"
88         @cp -fp ${IMAGES}/hires/*.eps .
89         dvipdfm -p a4 bacula.dvi
90         @rm -f *.eps *.old
91
92 dvipdf:
93         @echo "Making dvi to pdf"
94         @cp -fp ${IMAGES}/hires/*.eps .
95         dvipdf bacula.dvi bacula.pdf
96         @rm -f *.eps *.old
97
98
99 devpdf:
100         @echo "Making developers pdf"
101         @cp -fp ${IMAGES}/hires/*.eps .
102         dvipdf developers.dvi developers.pdf
103         @rm -f *.eps *.old
104
105 devpdfm:
106         @echo "Making pdfm"
107         @cp -fp ${IMAGES}/hires/*.eps .
108         dvipdfm -p a4 developers.dvi
109         @rm -f *.eps *.old
110
111 html:
112         @echo "Making html"
113         @cp -fp ${IMAGES}/*.eps .
114         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
115                 bacula >/dev/null
116         ./translate_images.pl bacula.html
117         @rm -f *.eps *.gif *.jpg
118
119 devhtml:
120         @echo "Making developers html"
121         @cp -fp ${IMAGES}/*.eps .
122         latex2html -white -no_subdir -split 0 -toc_stars -white -notransparent \
123                 developers >/dev/null
124         ./translate_images.pl developers.html
125         @rm -f *.eps *.gif *.jpg *.old
126
127
128 web:
129         @echo "Making web"
130         @mkdir -p bacula
131         @rm -rf bacula/*
132         @cp -fp ${IMAGES}/*.eps .
133         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
134 #       @cp -fp ${IMAGES}/*.eps  ${IMAGES}/*.png *.txt bacula
135         @cp -fp ${IMAGES}/*.eps *.txt bacula
136         @rm -f bacula/next.eps bacula/next.png bacula/prev.eps bacula/prev.png bacula/up.eps bacula/up.png
137         latex2html -split 4 -local_icons -t "Bacula User's Guide" -long_titles 4 \
138                 -toc_stars -contents_in_nav -white -notransparent bacula >/dev/null
139         ./translate_images.pl bacula/Bacula_Users_Guide.html
140         @cp -f bacula/Bacula_Users_Guide.html bacula/index.html
141         @cp -f bacula/Bacula_Freque_Asked_Questi.html bacula/faq.html 
142         @rm -f *.eps *.gif *.jpg bacula/*.eps *.old
143
144 devweb:
145         @echo "Making developers web"
146         @mkdir -p developers
147         @rm -f developers/*
148         @cp -fp ${IMAGES}/*.eps .
149         @rm -f next.eps next.png prev.eps prev.png up.eps up.png
150         @cp -fp ${IMAGES}/*.eps ${IMAGES}/*.png developers/
151         @rm -f developers/next.eps developers/next.png developers/prev.eps developers/prev.png developers/up.eps developers/up.png
152         latex2html -split 5 -local_icons -t "Developer's Guide" -long_titles 4 \
153                 -contents_in_nav -toc_stars -white -notransparent developers >/dev/null
154         ./translate_images.pl developers/Developers_Guide.html
155         @cp -f developers/Developers_Guide.html developers/index.html
156         @rm -f *.eps *.gif *.jpg developers/*.eps  *.old
157
158 texcheck:
159         ./check_tex.pl bacula.tex
160         ./check_tex.pl developers.tex
161
162 main_configs:
163         pic2graph -density 100 <main_configs.pic >main_configs.png
164
165 clean:
166         @rm -f 1 2 3
167         @rm -f *.png *.gif *.jpg *.eps
168         @rm -f *.pdf *.aux *.cp *.fn *.ky *.log *.pg
169         @rm -f *.html *.backup *.pdf *.ps *.dvi *.ilg *.lof *.lot
170         @rm -f *.cdx *.cnd *.ddx *.ddn *.fdx *.fnd *.ind *.sdx *.snd
171         @rm -f *.dnd
172         @rm -f *.old WARNINGS *.out *.toc *.idx
173         @rm -f images.pl labels.pl internals.pl
174         @rm -rf bacula developers
175         @rm -f baculai-dir.tex baculai-fd.tex baculai-sd.tex \
176              baculai-console.tex baculai-general.tex images.tex developersi.tex
177
178
179 distclean:  clean
180         @rm -f bacula.html bacula.pdf developers.html developers.pdf