validate: Make sphinx documentation generation optionnal

This commit is contained in:
Thibault Saunier 2014-09-06 12:34:39 +02:00
parent 3ff59368f0
commit 07391578c9
2 changed files with 11 additions and 2 deletions

View file

@ -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 ***

View file

@ -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