Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / doc / xml / AdminRef / Makefile.in
bloba9d78d6a55150e37f61c30c75940bc62257b43d4
1 # Makefile to build the AFS Reference Guide for Unix.
3 BOOK = auarf000
5 all: $(BOOK).pdf $(BOOK).epub $(BOOK).mobi
7 include @TOP_OBJDIR@/src/config/Makefile.config
8 VERSION=version
9 include @TOP_OBJDIR@/src/config/Makefile.version
11 SRCS = $(BOOK).xml preface.xml $(VERSION).xml \
12 entities.dtd sect1.xml sect5.xml sect8.xml
13 DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
14 XSLTPROC = @XSLTPROC@ --stringparam variablelist.as.blocks 1 --param use.id.as.filename 1
15 DOCBOOK2PDF = @DOCBOOK2PDF@
16 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
17 KINDLEGEN = @KINDLEGEN@
19 entities.dtd sect1.xml sect5.xml sect8.xml:
20 ./generate-xml.pl $(TOP_SRCDIR)
22 $(BOOK).pdf: $(SRCS)
23 if test "x$(DOCBOOK2PDF)" = "xfop"; then \
24 $(XSLTPROC) $(DOCBOOK_STYLESHEETS)/fo/docbook.xsl $(BOOK).xml > $(BOOK).fo; \
25 $(DOCBOOK2PDF) $(BOOK).fo $(BOOK).pdf; \
26 else \
27 $(DOCBOOK2PDF) $(BOOK).xml; \
30 $(BOOK).epub: $(SRCS)
31 if test -x "$(DBTOEPUB)" ; then \
32 $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
35 $(BOOK).mobi: $(BOOK).epub
36 if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
37 $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
40 check:
41 xmllint --noout --valid $(BOOK).xml
43 clean:
44 rm -f $(BOOK).pdf $(BOOK).mobi $(BOOK).epub $(BOOK).fo \
45 entities.dtd sect1.xml sect5.xml sect8.xml $(VERSION).xml
46 rm -rf sect1 sect5 sect8