]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/utility/web.makefile
Fix bug #2240 correct typo and directive default
[bacula/docs] / docs / manuals / en / utility / web.makefile
1 #
2 # This file will be used to create the HTML version
3 # of the documentation.
4 IMAGES=../../../../images
5 DOC=utility
6 MAINDOC=Utility_Programs.html
7 #
8 # Web documentation generation
9 HTML_TITLE="Utility Programs"
10 HTML_DEPTH=3
11 HTML_TITLES=6
12 HTML_VERSION=4.0
13 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
14
15 .SUFFIXES:     .tex .html
16 .PHONY:
17 .DONTCARE:
18
19 first_rule: all
20
21 all: web clean
22
23 pngimages:
24         @echo "PNG images"
25         @echo -n "Generating PNG images..."
26         @(cd ${IMAGES}/svg ; make png)
27         @echo "Done."
28         @echo -n "Linking png images..."
29         @(for F in $(IMAGES)/*.png ;\
30         do \
31         ln -sf $$F ./`basename $$F`; \
32         done)
33         @(for F in $(IMAGES)/png/*.png ;\
34         do \
35         ln -sf $$F ./`basename $$F`; \
36         done)
37         @echo "Done."
38         @echo "PNG done."
39
40 clean:
41         @echo -n "Cleaning..."
42         @find . -type l -iname "*.png" -exec rm -f {} \;
43         @echo "Done."
44
45 web: pngimages
46         @echo "Making web"
47         @rm -f next.png prev.png up.png
48         @rm -f ${DOC}/xp-*.png
49         @rm -f ${DOC}/next.png ${DOC}/prev.png ${DOC}/up.png
50         @${LATEX_TO_HTML}
51         @cp -f ${DOC}/${MAINDOC} ${DOC}/index.html
52         @echo "Done making web"