Don't fail to build documentation if kindlegen doesn't exist
[openafs.git] / doc / xml / QuickStartUnix / Makefile.in
index 594bc6c..b40a9b9 100644 (file)
@@ -48,7 +48,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