salvageserver: Add -logfile option
[openafs.git] / doc / xml / AdminRef / Makefile.in
1 # Makefile to build the AFS Reference Guide for Unix.
2
3 BOOK = auarf000
4
5 all: $(BOOK).pdf $(BOOK).epub $(BOOK).mobi
6
7 include @TOP_OBJDIR@/src/config/Makefile.config
8 VERSION=version
9 include @TOP_OBJDIR@/src/config/Makefile.version
10
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
15 DOCBOOK2PDF = @DOCBOOK2PDF@
16 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
17 KINDLEGEN = @KINDLEGEN@
18
19 entities.dtd sect1.xml sect5.xml sect8.xml:
20         ./generate-xml.pl $(TOP_SRCDIR)
21
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; \
28         fi
29
30 $(BOOK).epub: $(SRCS)
31         if test -x "$(DBTOEPUB)" ; then \
32                 $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
33         fi
34
35 $(BOOK).mobi: $(BOOK).epub
36         if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
37                 $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
38         fi
39
40 check:
41         xmllint --noout --valid $(BOOK).xml
42
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