From e4a8d6e2a4355f54cb73d3b27afb0ce19ce7eb0d Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 21 Apr 2019 20:36:43 -0300 Subject: [PATCH] build: only try to build .rsti files if we have emacs and sphinx Emacs is needed to build them, and sphinx is needed to use them --- emacs/Makefile.local | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/Makefile.local b/emacs/Makefile.local index 04913a06..40b7c14f 100644 --- a/emacs/Makefile.local +++ b/emacs/Makefile.local @@ -47,8 +47,13 @@ emacs_images := \ emacs_bytecode = $(emacs_sources:.el=.elc) emacs_docstrings = $(emacs_sources:.el=.rsti) +ifneq ($(HAVE_SPHINX)$(HAVE_EMACS),11) +docstring.stamp: + @echo "Missing prerequisites, not collecting docstrings" +else docstring.stamp: ${emacs_docstrings} touch $@ +endif # Because of defmacro's and defsubst's, we have to account for load # dependencies between Elisp files when byte compiling. Otherwise, -- 2.43.0