From 0753f94b86cb0e86ead04f5fdc754e2ddd343b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 26 Nov 2018 09:19:56 +0100 Subject: Disable sphinx tests when it isn't installed --- test/plugin_sphinx.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/plugin_sphinx.mk') 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" \ -- cgit v1.2.3