From 07391578c9de83223c3fa38e968f22defe3333a3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 6 Sep 2014 12:34:39 +0200 Subject: [PATCH] validate: Make sphinx documentation generation optionnal --- validate/configure.ac | 4 ++++ validate/docs/Makefile.am | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/validate/configure.ac b/validate/configure.ac index 8fce262f34..b604fa45f8 100644 --- a/validate/configure.ac +++ b/validate/configure.ac @@ -102,6 +102,10 @@ dnl check for documentation tools AG_GST_DOCBOOK_CHECK GTK_DOC_CHECK([1.3]) + +AC_CHECK_PROG(enable_sphinx_doc, sphinx-build, yes, no) +AM_CONDITIONAL(HAVE_SPHINHX, test ! "x$enable_sphinx_doc" = "xno") + dnl *** checks for libraries *** dnl *** checks for header files *** diff --git a/validate/docs/Makefile.am b/validate/docs/Makefile.am index d07e032e70..188b9dc171 100644 --- a/validate/docs/Makefile.am +++ b/validate/docs/Makefile.am @@ -1,5 +1,10 @@ -SUBDIRS = validate launcher -DIST_SUBDIRS = validate launcher +SUBDIRS = validate +DIST_SUBDIRS = validate + +if HAVE_SPHINHX +SUBDIRS += launcher +DIST_SUBDIRS += launcher +endif upload: @if test "x$(SUBDIRS)" != x; then for a in $(SUBDIRS); do cd $$a; make upload; cd ..; done; fi