doc: let configure find the XML tools if possible
[openafs.git] / doc / xml / QuickStartUnix / Makefile.in
1 # Makefile to build the AFS QuickStart 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 specific to Debian and will need to be modified on other
14 # systems until we have a better mechanism for finding the correct path.
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     = auqbg000.xml
23 SRCS     = $(BOOK) auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
24            auqbg007.xml auqbg008.xml appendix.xml appendix_dafs.xml
25 HTML_XSL = @HTML_XSL@
26 XSLTPROC = @XSLTPROC@
27 DOCBOOK2PDF = @DOCBOOK2PDF@
28
29 html: $(SRCS) $(VERSFILE).xml
30         $(XSLTPROC) --param navig.graphics 1 \
31             --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
32
33 pdf: $(SRCS) $(VERSFILE).xml
34         $(DOCBOOK2PDF) $(BOOK)
35
36 check:
37         xmllint --noout --valid $(BOOK)
38
39 clean:
40         rm -f *.html *.pdf