2006-12-02 02:22:34 +00:00
|
|
|
# Makefile to build the AFS QuickStart guide for Unix.
|
|
|
|
#
|
|
|
|
# This makefile assumes that various utilities are available on the system.
|
2009-05-19 05:58:53 +01:00
|
|
|
# On Debian lenny, installing the packages:
|
2006-12-02 02:22:34 +00:00
|
|
|
#
|
2009-05-19 05:58:53 +01:00
|
|
|
# dblatex
|
2009-05-19 05:27:36 +01:00
|
|
|
# docbook-xsl
|
2006-12-02 02:22:34 +00:00
|
|
|
# libxml2-utils
|
2009-05-19 05:27:36 +01:00
|
|
|
# xsltproc
|
2006-12-02 02:22:34 +00:00
|
|
|
#
|
2009-05-19 05:58:53 +01:00
|
|
|
# gave me all the utilities needed.
|
2009-05-19 05:27:36 +01:00
|
|
|
#
|
2009-05-19 05:58:53 +01:00
|
|
|
# HTML_XSL is specific to Debian and will need to be modified on other
|
|
|
|
# systems until we have a better mechanism for finding the correct path.
|
2006-12-02 02:22:34 +00:00
|
|
|
|
2011-06-08 14:42:47 +01:00
|
|
|
BOOK = auqbg000
|
|
|
|
|
|
|
|
all: $(BOOK).pdf index.html
|
2009-05-27 21:44:24 +01:00
|
|
|
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
2011-06-08 14:42:47 +01:00
|
|
|
VERSION=version
|
2009-05-27 21:44:24 +01:00
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.version
|
|
|
|
|
2011-06-08 14:40:17 +01:00
|
|
|
SRCS = $(BOOK).xml auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
|
2011-06-08 14:42:47 +01:00
|
|
|
auqbg007.xml auqbg008.xml appendix.xml appendix_dafs.xml \
|
|
|
|
$(VERSION).xml
|
2009-05-27 21:44:24 +01:00
|
|
|
HTML_XSL = @HTML_XSL@
|
2011-06-08 14:40:17 +01:00
|
|
|
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
|
2009-05-27 21:44:24 +01:00
|
|
|
XSLTPROC = @XSLTPROC@
|
2011-06-03 00:00:47 +01:00
|
|
|
DOCBOOK2PDF = @DOCBOOK2PDF@
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2011-06-08 14:42:47 +01:00
|
|
|
index.html: $(SRCS)
|
2009-05-27 21:44:24 +01:00
|
|
|
$(XSLTPROC) --param navig.graphics 1 \
|
2011-06-08 14:40:17 +01:00
|
|
|
--stringparam navig.graphics.path ../ $(DOCBOOK_STYLESHEETS)/$(HTML_XSL) $(BOOK).xml
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2011-06-08 14:42:47 +01:00
|
|
|
$(BOOK).pdf: $(SRCS)
|
2011-06-08 14:40:17 +01:00
|
|
|
if test "x$(DOCBOOK2PDF)" = "xfop"; then \
|
|
|
|
$(XSLTPROC) $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl $(BOOK).xml > $(BOOK).fo; \
|
|
|
|
$(DOCBOOK2PDF) $(BOOK).fo $(BOOK).pdf; \
|
|
|
|
else \
|
|
|
|
$(DOCBOOK2PDF) $(BOOK).xml; \
|
|
|
|
fi
|
2006-09-16 02:13:22 +01:00
|
|
|
|
|
|
|
check:
|
2011-06-08 14:40:17 +01:00
|
|
|
xmllint --noout --valid $(BOOK).xml
|
2006-12-02 02:22:34 +00:00
|
|
|
|
|
|
|
clean:
|
2009-05-19 05:58:53 +01:00
|
|
|
rm -f *.html *.pdf
|