1 # Makefile to build the AFS Admin 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 possibly specific to Debian and may need to be modified on other
18 all: $(BOOK).pdf index.html
20 include @TOP_OBJDIR@/src/config/Makefile.config
22 include @TOP_OBJDIR@/src/config/Makefile.version
24 SRCS = $(BOOK).xml auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
25 auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
26 auusg012.xml $(VERSION).xml
28 DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
30 DOCBOOK2PDF = @DOCBOOK2PDF@
33 $(XSLTPROC) --param navig.graphics 1 \
34 --stringparam navig.graphics.path ../ $(DOCBOOK_STYLESHEETS)/$(HTML_XSL) $(BOOK).xml
37 if test "x$(DOCBOOK2PDF)" = "xfop"; then \
38 $(XSLTPROC) $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl $(BOOK).xml > $(BOOK).fo; \
39 $(DOCBOOK2PDF) $(BOOK).fo $(BOOK).pdf; \
41 $(DOCBOOK2PDF) $(BOOK).xml; \
45 xmllint --noout --valid $(BOOK).xml