2011-08-13 15:18:45 +01:00
|
|
|
# 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 \
|
2024-08-08 18:57:05 +01:00
|
|
|
entities.dtd sect1.xml sect3.xml sect5.xml sect8.xml
|
2011-08-13 15:18:45 +01:00
|
|
|
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
|
2016-02-13 19:02:55 +00:00
|
|
|
XSLTPROC = @XSLTPROC@ --stringparam variablelist.as.blocks 1 --param use.id.as.filename 1
|
2011-08-13 15:18:45 +01:00
|
|
|
DOCBOOK2PDF = @DOCBOOK2PDF@
|
|
|
|
DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
|
2012-09-24 00:02:19 +01:00
|
|
|
KINDLEGEN = @KINDLEGEN@
|
2011-08-13 15:18:45 +01:00
|
|
|
|
2024-08-08 18:57:05 +01:00
|
|
|
entities.dtd sect1.xml sect3.xml sect5.xml sect8.xml:
|
2011-08-13 15:18:45 +01:00
|
|
|
./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
|
2012-09-24 00:02:19 +01:00
|
|
|
if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
|
|
|
|
$(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
|
|
|
|
fi
|
2011-08-13 15:18:45 +01:00
|
|
|
|
|
|
|
check:
|
|
|
|
xmllint --noout --valid $(BOOK).xml
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(BOOK).pdf $(BOOK).mobi $(BOOK).epub $(BOOK).fo \
|
2024-08-08 18:57:05 +01:00
|
|
|
entities.dtd sect1.xml sect3.xml sect5.xml sect8.xml $(VERSION).xml
|
|
|
|
rm -rf sect1 sect3 sect5 sect8
|