doc: fix kindle builds of documentation
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Sun, 23 Sep 2012 23:02:19 +0000 (19:02 -0400)
committerKen Dreyer <ktdreyer@ktdreyer.com>
Mon, 24 Sep 2012 05:24:40 +0000 (22:24 -0700)
Use kindlegen located by the configure stage and test for
kindlegen and dbtoepub before building in all cases.

Change-Id: Ieb46023ddf0725a2c93f96e29f942b71343d53dd
Reviewed-on: http://gerrit.openafs.org/8148
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>

doc/xml/AdminGuide/Makefile.in
doc/xml/AdminRef/Makefile.in
doc/xml/QuickStartUnix/Makefile.in
doc/xml/UserGuide/Makefile.in

index b60c80a..aa2e258 100644 (file)
@@ -30,6 +30,7 @@ HTML_XSL = @HTML_XSL@
 DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
 XSLTPROC = @XSLTPROC@
 DOCBOOK2PDF = @DOCBOOK2PDF@
+KINDLEGEN = @KINDLEGEN@
 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
 
 index.html: $(SRCS)
@@ -51,7 +52,7 @@ $(BOOK).epub: $(SRCS)
 
 $(BOOK).mobi: $(BOOK).epub
        if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
-               kindlegen $(BOOK).epub -o $(BOOK).mobi; \
+               $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
        fi
 
 check:
index 50facc6..d685d81 100644 (file)
@@ -14,6 +14,7 @@ DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
 XSLTPROC = @XSLTPROC@ --stringparam variablelist.as.blocks 1
 DOCBOOK2PDF = @DOCBOOK2PDF@
 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
+KINDLEGEN = @KINDLEGEN@
 
 entities.dtd sect1.xml sect5.xml sect8.xml:
        ./generate-xml.pl $(TOP_SRCDIR)
@@ -32,7 +33,9 @@ $(BOOK).epub: $(SRCS)
        fi
 
 $(BOOK).mobi: $(BOOK).epub
-       kindlegen $(BOOK).epub -o $(BOOK).mobi
+       if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
+               $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
+       fi
 
 check:
        xmllint --noout --valid $(BOOK).xml
index b40a9b9..c494977 100644 (file)
@@ -29,6 +29,7 @@ DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
 XSLTPROC = @XSLTPROC@
 DOCBOOK2PDF = @DOCBOOK2PDF@
 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
+KINDLEGEN = @KINDLEGEN@
 
 index.html: $(SRCS)
        $(XSLTPROC) --param navig.graphics 1 \
@@ -49,7 +50,7 @@ $(BOOK).epub: $(SRCS)
 
 $(BOOK).mobi: $(BOOK).epub
        if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
-               kindlegen $(BOOK).epub -o $(BOOK).mobi; \
+               $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
        fi
 
 check:
index 5b05357..a152644 100644 (file)
@@ -29,6 +29,7 @@ DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
 XSLTPROC = @XSLTPROC@
 DOCBOOK2PDF = @DOCBOOK2PDF@
 DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
+KINDLEGEN = @KINDLEGEN@
 
 index.html: $(SRCS)
        $(XSLTPROC) --param navig.graphics 1 \
@@ -49,7 +50,7 @@ $(BOOK).epub: $(SRCS)
 
 $(BOOK).mobi: $(BOOK).epub
        if test -n "$(KINDLEGEN)" && test -x "$(DBTOEPUB)" ; then \
-               kindlegen $(BOOK).epub -o $(BOOK).mobi; \
+               $(KINDLEGEN) $(BOOK).epub -o $(BOOK).mobi; \
        fi
 
 check: