Fix build without rst2html and without existing README.html

Fixes regression from #221
pull/235/head
Nils Maier 2014-05-30 03:16:48 +02:00
parent d2e38aab36
commit c4d91b2299
1 changed files with 6 additions and 2 deletions

View File

@ -14,9 +14,13 @@ EXTRA_DIST = config.rpath \
dist_doc_DATA = README README.rst README.html
if HAVE_RST2HTML
README.html: README.rst
$(RST2HTML) $< > README.html
$(RST2HTML) $< > $@
else
README.html: README.rst
@echo Warning: rst2html not installed. Placing only a dummy file for $@
echo "<!doctype html>" >> $@
echo "<p>Readme has not been built!.<br>Instead see <a href='README.rst'>README.rst</a></p>" >> $@
endif # HAVE_RST2HTML
dist_noinst_DATA = LICENSE.OpenSSL