aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_sphinx.mk
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugin_sphinx.mk')
-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" \