From c4d91b2299a5f621cb53509425b637accab986cc Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Fri, 30 May 2014 03:16:48 +0200 Subject: [PATCH] Fix build without rst2html and without existing README.html Fixes regression from #221 --- Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index cb847626..0b855028 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 "" >> $@ + echo "

Readme has not been built!.
Instead see README.rst

" >> $@ endif # HAVE_RST2HTML dist_noinst_DATA = LICENSE.OpenSSL