From: Keith Packard Date: Thu, 3 Jan 2019 06:02:42 +0000 (-0800) Subject: doc: Skip .pdf generation when asciidoctor-pdf is missing X-Git-Tag: 1.9^2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ecf40a3a190fb2f7d7d2654c1e87daddf0362b0c doc: Skip .pdf generation when asciidoctor-pdf is missing Not available in debian unstable yet Signed-off-by: Keith Packard --- diff --git a/configure.ac b/configure.ac index ee175dbe..abaec2cd 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,12 @@ if test "x$HAVE_NICKLE" = "xno"; then AC_MSG_ERROR([Please install nickle to build AltOs]) fi +AC_CHECK_PROG([HAVE_ASCIIDOCTOR_PDF], [asciidoctor-pdf], yes, no) +if test "x$HAVE_ASCIIDOCTOR_PDF" = "xno"; then + AC_MSG_WARN([asciidoctor-pdf not found, PDF docs will not be built]) +fi +AM_CONDITIONAL([ASCIIDOCTOR_PDF], [test x$HAVE_ASCIIDOCTOR_PDF != xno]) + PKG_CHECK_MODULES([JANSSON], [jansson]) AC_ARG_WITH([readline], diff --git a/doc/Makefile.am b/doc/Makefile.am index 67033e8b..4dfb3094 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -225,8 +225,10 @@ PUBLISH_HTML=altusmetrum.html micropeak.html telegps.html easymini.html $(ONEFIL HTML=$(PUBLISH_HTML) $(RELNOTES_HTML) +if ASCIIDOCTOR_PDF PDF=altusmetrum.pdf micropeak.pdf telegps.pdf easymini.pdf $(ONEFILE_PDF_FILES) \ $(OUTLINE_PDF_FILES) +endif MAP_DOT_FILES=map-loading.dot MAP_SVG_FILES=$(MAP_DOT_FILES:.dot=.svg)