mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
55050f566b
index.html might not be built if you are building anything other than the html/chunk.xsl but in general this is better than before. Change-Id: I2e1b98c8a3fce65cb702274d5e276989031e338b Reviewed-on: http://gerrit.openafs.org/4822 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# 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 = auagd000
|
|
|
|
all: $(BOOK).pdf index.html
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
VERSION=version
|
|
include @TOP_OBJDIR@/src/config/Makefile.version
|
|
|
|
SRCS = $(BOOK).xml 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 $(VERSION).xml
|
|
HTML_XSL = @HTML_XSL@
|
|
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
|
|
XSLTPROC = @XSLTPROC@
|
|
DOCBOOK2PDF = @DOCBOOK2PDF@
|
|
|
|
index.html: $(SRCS)
|
|
$(XSLTPROC) --param navig.graphics 1 \
|
|
--stringparam navig.graphics.path ../ $(DOCBOOK_STYLESHEETS)/$(HTML_XSL) $(BOOK).xml
|
|
|
|
$(BOOK).pdf: $(SRCS)
|
|
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
|
|
|
|
check:
|
|
xmllint --noout --valid $(BOOK).xml
|
|
|
|
clean:
|
|
rm -f *.html *.pdf
|