aboutsummaryrefslogtreecommitdiff
path: root/emacs/Makefile.local
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2019-04-21 20:36:43 -0300
committerDavid Bremner <david@tethera.net>2019-04-24 06:53:13 -0300
commite4a8d6e2a4355f54cb73d3b27afb0ce19ce7eb0d (patch)
treeb2b0b070df4699f03a84a0f36a54ac405fdef789 /emacs/Makefile.local
parentc07e0cf256a072926c93f07d6f551b73d5143c2b (diff)
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
Diffstat (limited to 'emacs/Makefile.local')
-rw-r--r--emacs/Makefile.local5
1 files changed, 5 insertions, 0 deletions
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,