doc: let configure find the XML tools if possible
[openafs.git] / doc / xml / UserGuide / Makefile.in
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 all: pdf html
17
18 include @TOP_OBJDIR@/src/config/Makefile.config
19 VERSFILE=version
20 include @TOP_OBJDIR@/src/config/Makefile.version
21
22 BOOK     = auusg000.xml
23 SRCS     = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
24            auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
25            auusg012.xml
26 HTML_XSL = @HTML_XSL@
27 XSLTPROC = @XSLTPROC@
28 DOCBOOK2PDF = @DOCBOOK2PDF@
29
30 html: $(SRCS) $(VERSFILE).xml
31         $(XSLTPROC) --param navig.graphics 1 \
32             --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
33
34 pdf: $(SRCS) $(VERSFILE).xml
35         $(DOCBOOK2PDF) $(BOOK)
36
37 check:
38         xmllint --noout --valid $(BOOK)
39
40 clean:
41         rm -f *.html *.pdf