2009-05-19 04:58:53 +00:00
|
|
|
# Makefile to build the AFS Admin Guide for Unix.
|
|
|
|
#
|
|
|
|
# This makefile assumes that various utilities are available on the system.
|
|
|
|
# On Debian lenny, installing the packages:
|
|
|
|
#
|
|
|
|
# dblatex
|
|
|
|
# docbook-xsl
|
|
|
|
# libxml2-utils
|
|
|
|
# xsltproc
|
|
|
|
#
|
|
|
|
# gave me all the utilities needed.
|
|
|
|
#
|
|
|
|
# HTML_XSL is possibly specific to Debian and may need to be modified on other
|
|
|
|
# systems.
|
|
|
|
|
|
|
|
BOOK = auusg000.xml
|
|
|
|
SRCS = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
|
|
|
|
auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
|
|
|
|
auusg012.xml
|
|
|
|
HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
|
2006-09-16 01:13:22 +00:00
|
|
|
|
|
|
|
all: pdf html
|
|
|
|
|
|
|
|
html: $(SRCS)
|
2009-05-19 04:58:53 +00:00
|
|
|
xsltproc --param navig.graphics 1 \
|
|
|
|
--stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
|
2006-09-16 01:13:22 +00:00
|
|
|
|
|
|
|
pdf: $(SRCS)
|
2009-05-19 04:58:53 +00:00
|
|
|
dblatex $(BOOK)
|
2006-09-16 01:13:22 +00:00
|
|
|
|
|
|
|
check:
|
|
|
|
xmllint --noout --valid $(BOOK)
|
2009-05-19 04:58:53 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.html *.pdf
|