windows-install-20090527
[openafs.git] / doc / xml / UserGuide / Makefile
1 # Makefile to build the AFS Admin Guide for Unix.
2 #
3 # This makefile assumes that various utilities are available on the system.
4 # On Debian lenny, installing the packages:
5 #
6 #     dblatex
7 #     docbook-xsl
8 #     libxml2-utils
9 #     xsltproc
10 #
11 # gave me all the utilities needed.
12 #
13 # HTML_XSL is possibly specific to Debian and may need to be modified on other
14 # systems.
15
16 BOOK     = auusg000.xml
17 SRCS     = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
18            auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
19            auusg012.xml
20 HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
21
22 all: pdf html
23
24 html: $(SRCS)
25         xsltproc --param navig.graphics 1 \
26             --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
27
28 pdf: $(SRCS)
29         dblatex $(BOOK)
30
31 check:
32         xmllint --noout --valid $(BOOK)
33
34 clean:
35         rm -f *.html *.pdf