mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
c5e8d594e6
The deployed documentation on docs.openafs.org uses html file names that match the id element for the XML elements in question. On recent Debian systems, rebuilding these documents uses different names for the files, based on their position within the document hierarchy. For consistency with past usage, and to avoid breaking direct links when possible, set the xsl parameter use.id.as.filename to go back to the old naming scheme. Change-Id: I6d3fa2b74e319d1375891170817760d027e82f03 Reviewed-on: https://gerrit.openafs.org/12189 Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: Benjamin Kaduk <kaduk@mit.edu>
62 lines
1.7 KiB
Makefile
62 lines
1.7 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 = auusg000
|
|
|
|
all: $(BOOK).pdf index.html $(BOOK).epub $(BOOK).mobi
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
VERSION=version
|
|
include @TOP_OBJDIR@/src/config/Makefile.version
|
|
|
|
SRCS = $(BOOK).xml auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
|
|
auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
|
|
auusg012.xml $(VERSION).xml
|
|
HTML_XSL = @HTML_XSL@
|
|
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
|
|
XSLTPROC = @XSLTPROC@
|
|
DOCBOOK2PDF = @DOCBOOK2PDF@
|
|
DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
|
|
KINDLEGEN = @KINDLEGEN@
|
|
|
|
index.html: $(SRCS)
|
|
$(XSLTPROC) --param navig.graphics 1 \
|
|
--param use.id.as.filename 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
|
|
|
|
$(BOOK).epub: $(SRCS)
|
|
if test -x "$(DBTOEPUB)" ; then \
|
|
$(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
|
|
fi
|
|
|
|
$(BOOK).mobi: $(BOOK).epub
|
|
if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
|
|
$(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
|
|
fi
|
|
|
|
check:
|
|
xmllint --noout --valid $(BOOK).xml
|
|
|
|
clean:
|
|
rm -f *.aux *.epub *.fo *.html *.log *.mobi *.out *.pdf
|