2009-05-19 05:58:53 +01: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.
|
|
|
|
|
2009-05-27 21:44:24 +01:00
|
|
|
all: pdf html
|
|
|
|
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
VERSFILE=version
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.version
|
|
|
|
|
2009-05-19 05:58:53 +01:00
|
|
|
BOOK = auagd000.xml
|
|
|
|
SRCS = $(BOOK) auagd005.xml auagd006.xml auagd007.xml auagd008.xml \
|
|
|
|
auagd009.xml auagd010.xml auagd011.xml auagd012.xml auagd013.xml \
|
|
|
|
auagd014.xml auagd015.xml auagd016.xml auagd017.xml auagd018.xml \
|
|
|
|
auagd019.xml auagd020.xml auagd021.xml auagd022.xml auagd023.xml \
|
|
|
|
auagd024.xml auagd025.xml
|
2009-05-27 21:44:24 +01:00
|
|
|
HTML_XSL = @HTML_XSL@
|
|
|
|
XSLTPROC = @XSLTPROC@
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2009-05-27 21:44:24 +01:00
|
|
|
html: $(SRCS) $(VERSFILE).xml
|
|
|
|
$(XSLTPROC) --param navig.graphics 1 \
|
2009-05-19 05:58:53 +01:00
|
|
|
--stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2009-06-02 00:30:42 +01:00
|
|
|
pdf: $(SRCS) $(VERSFILE).xml
|
2009-05-19 05:58:53 +01:00
|
|
|
dblatex $(BOOK)
|
2006-09-16 02:13:22 +01:00
|
|
|
|
|
|
|
check:
|
|
|
|
xmllint --noout --valid $(BOOK)
|
2009-05-19 05:58:53 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.html *.pdf
|