1 # Makefile to build the AFS Reference Guide for Unix.
5 all: $(BOOK
).pdf
$(BOOK
).epub
$(BOOK
).mobi
7 include @TOP_OBJDIR@
/src
/config
/Makefile.config
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
)
23 if
test "x$(DOCBOOK2PDF)" = "xfop"; then \
24 $(XSLTPROC
) $(DOCBOOK_STYLESHEETS
)/fo
/docbook.xsl
$(BOOK
).xml
> $(BOOK
).fo
; \
25 $(DOCBOOK2PDF
) $(BOOK
).fo
$(BOOK
).pdf
; \
27 $(DOCBOOK2PDF
) $(BOOK
).xml
; \
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
; \
41 xmllint
--noout
--valid
$(BOOK
).xml
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