From: Jean-Philippe Orsini Date: Sat, 2 Aug 2014 19:54:35 +0000 (+0200) Subject: do not try to generate html files if asciidoc is not present X-Git-Tag: v1.1.1~38 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=b9e061f09a25f4b62ed200b27d6b260a8a51fc60 do not try to generate html files if asciidoc is not present --- diff --git a/Makefile.am b/Makefile.am index e199b72..df37f0f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,8 +28,10 @@ desktop_DATA = psensor.desktop EXTRA_DIST = $(desktop_DATA) $(autostart_DATA) +if ASCIIDOC README.html: README www/style.css asciidoc --theme style -a themedir=`pwd`/www -n -a toc README NEWS.html: NEWS www/style.css asciidoc --theme style -a themedir=`pwd`/www NEWS +endif diff --git a/configure.ac b/configure.ac index 32fd731..fed2bd3 100644 --- a/configure.ac +++ b/configure.ac @@ -284,6 +284,9 @@ AC_CONFIG_FILES([ AC_CHECK_PROGS([HELP2MAN], [help2man]) +AC_CHECK_PROG([ASCIIDOC], [asciidoc], yes) +AM_CONDITIONAL(ASCIIDOC, test -n "$ASCIIDOC") + AC_CHECK_PROG(HAVE_CPPCHECK, cppcheck, yes) AM_CONDITIONAL(CPPCHECK, test -n "$HAVE_CPPCHECK")