Don't fail to build documentation if kindlegen doesn't exist
[openafs.git] / doc / xml / AdminGuide / Makefile.in
index 33d0dc8..b60c80a 100644 (file)
@@ -50,10 +50,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