1 # Makefile to build the AFS QuickStart guide for Unix.
3 # This makefile assumes that various utilities are available on the system.
4 # On Debian lenny, installing the packages:
11 # gave me all the utilities needed.
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.
18 include @TOP_OBJDIR@/src/config/Makefile.config
20 include @TOP_OBJDIR@/src/config/Makefile.version
23 SRCS = $(BOOK).xml auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
24 auqbg007.xml auqbg008.xml appendix.xml appendix_dafs.xml
26 DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
28 DOCBOOK2PDF = @DOCBOOK2PDF@
30 html: $(SRCS) $(VERSFILE).xml
31 $(XSLTPROC) --param navig.graphics 1 \
32 --stringparam navig.graphics.path ../ $(DOCBOOK_STYLESHEETS)/$(HTML_XSL) $(BOOK).xml
34 pdf: $(SRCS) $(VERSFILE).xml
35 if test "x$(DOCBOOK2PDF)" = "xfop"; then \
36 $(XSLTPROC) $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl $(BOOK).xml > $(BOOK).fo; \
37 $(DOCBOOK2PDF) $(BOOK).fo $(BOOK).pdf; \
39 $(DOCBOOK2PDF) $(BOOK).xml; \
43 xmllint --noout --valid $(BOOK).xml