]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/main/web.makefile
Fix description of Volume Retention -- bug 1844
[bacula/docs] / docs / manuals / en / main / web.makefile
1 IMAGES=../../../../images
2 DOC=main
3 MAINDOC=Main_Reference.html
4 #
5 # Web documentation generation
6 HTML_TITLE="Main Reference"
7 HTML_DEPTH=3
8 HTML_TITLES=6
9 HTML_VERSION=4.0
10 LATEX_TO_HTML=latex2html -split ${HTML_DEPTH} -local_icons -t ${HTML_TITLE} -long_titles ${HTML_TITLES} -toc_stars -contents_in_nav -init_file latex2html-init.pl -no_antialias -no_antialias_text -white -notransparent ${DOC} -html_version ${HTML_VERSION} >tex.out 2>&1
11
12 .SUFFIXES:     .tex .html
13 .PHONY:
14 .DONTCARE:
15
16 first_rule: all
17
18 all: web clean
19
20 pngimages:
21         @echo "PNG images"
22         @echo -n "Generating PNG images..."
23         @(cd ${IMAGES}/svg ; make png)
24         @echo "Done."
25         @echo -n "Linking png images..."
26         @(for F in $(IMAGES)/*.png ;\
27         do \
28         ln -sf $$F ./`basename $$F`; \
29         done)
30         @(for F in $(IMAGES)/png/*.png ;\
31         do \
32         ln -sf $$F ./`basename $$F`; \
33         done)
34         @echo "Done."
35         @echo "PNG done."
36
37 clean:
38         @echo -n "Cleaning..."
39         @find . -type l -iname "*.png" -exec rm -f {} \;
40         @echo "Done."
41
42 web: pngimages
43         @echo "Making web"
44         @rm -f  next.png  prev.png  up.png
45         @rm -f ${DOC}/xp-*.png
46         @rm -f  ${DOC}/next.png  ${DOC}/prev.png  ${DOC}/up.png
47         @${LATEX_TO_HTML}
48         @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
49         @echo "Done making web"