mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
85bb872e3d
a bit convoluted but this generates docbook from the pod documentation and from that pdf, epub and mobi versions. we are using variablelist.as.block since that looks prettier on smaller devices/screen. Change-Id: I5cd51ef10448373960a0aeed15212bbcf6f44039 Change-Id: Ib222dbfa30e3af644b1dbc6738df1d39cc33c92f Reviewed-on: http://gerrit.openafs.org/5255 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# Makefile to build the AFS Reference Guide for Unix.
|
|
|
|
BOOK = auarf000
|
|
|
|
all: $(BOOK).pdf $(BOOK).epub $(BOOK).mobi
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
VERSION=version
|
|
include @TOP_OBJDIR@/src/config/Makefile.version
|
|
|
|
SRCS = $(BOOK).xml preface.xml $(VERSION).xml \
|
|
entities.dtd sect1.xml sect5.xml sect8.xml
|
|
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
|
|
XSLTPROC = @XSLTPROC@ --stringparam variablelist.as.blocks 1
|
|
DOCBOOK2PDF = @DOCBOOK2PDF@
|
|
DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
|
|
|
|
entities.dtd sect1.xml sect5.xml sect8.xml:
|
|
./generate-xml.pl $(TOP_SRCDIR)
|
|
|
|
$(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
|
|
kindlegen $(BOOK).epub -o $(BOOK).mobi
|
|
|
|
check:
|
|
xmllint --noout --valid $(BOOK).xml
|
|
|
|
clean:
|
|
rm -f $(BOOK).pdf $(BOOK).mobi $(BOOK).epub $(BOOK).fo \
|
|
entities.dtd sect1.xml sect5.xml sect8.xml $(VERSION).xml
|
|
rm -rf sect1 sect5 sect8
|