Don't fail to build documentation if kindlegen doesn't exist
[openafs.git] / doc / xml / QuickStartUnix / Makefile.in
index 7351645..b40a9b9 100644 (file)
@@ -48,10 +48,12 @@ $(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
 
 clean:
-       rm -f *.html *.pdf
+       rm -f *.aux *.epub *.fo *.html *.log *.mobi *.out *.pdf