validate: Make sphinx documentation generation optionnal
authorThibault Saunier <tsaunier@gnome.org>
Sat, 6 Sep 2014 10:34:39 +0000 (12:34 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 6 Sep 2014 10:37:30 +0000 (12:37 +0200)
validate/configure.ac
validate/docs/Makefile.am

index 8fce262f341b1351b4c3b27929b18702ffe63db3..b604fa45f8fc6bfcc67c47bdba54a272b37da3d9 100644 (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 ***
index d07e032e704534e6dc8ffa6e958165bcf68f446f..188b9dc1719ebd45353e57a7bb857f726fa441fa 100644 (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