Browse Source

Disable sphinx tests when it isn't installed

Loïc Hoguin 6 years ago
parent
commit
0753f94b86
1 changed files with 5 additions and 1 deletions
  1. 5 1
      test/plugin_sphinx.mk

+ 5 - 1
test/plugin_sphinx.mk

@@ -1,6 +1,11 @@
 # Sphinx plugin.
 
+# Disable this test suite when sphinx is not installed.
+ifeq ($(shell which sphinx-build),)
+SPHINX_TARGETS =
+else
 SPHINX_TARGETS = $(call list_targets,sphinx)
+endif
 
 .PHONY: sphinx $(SPHINX_TARGETS)
 
@@ -132,7 +137,6 @@ sphinx-format-opts: build clean
 	$t grep -q erlang_mk_sphinx_html_today $(APP)/html/manpage.html
 	$t grep -q erlang_mk_sphinx_man_today $(APP)/man/sphinx_$(APP).1
 
-
 define sphinx-generate-doc-skeleton
 $t mkdir $(APP)/$(if $1,$1,doc)/
 $t printf "%s\n" \