aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-26 09:19:56 +0100
committerLoïc Hoguin <[email protected]>2018-11-26 09:19:56 +0100
commit0753f94b86cb0e86ead04f5fdc754e2ddd343b71 (patch)
tree5fbcf3940051d3e1aff29c5ca4bb3d72ccdb9901 /test
parent274d1d4c476cde8332ddfb6a4ab63ef4b861a750 (diff)
downloaderlang.mk-0753f94b86cb0e86ead04f5fdc754e2ddd343b71.tar.gz
erlang.mk-0753f94b86cb0e86ead04f5fdc754e2ddd343b71.tar.bz2
erlang.mk-0753f94b86cb0e86ead04f5fdc754e2ddd343b71.zip
Disable sphinx tests when it isn't installed
Diffstat (limited to 'test')
-rw-r--r--test/plugin_sphinx.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/plugin_sphinx.mk b/test/plugin_sphinx.mk
index 0a39dca..d5e51e4 100644
--- a/test/plugin_sphinx.mk
+++ b/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" \