]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/Makefile.local
build: only try to build .rsti files if we have emacs and sphinx
[notmuch] / emacs / Makefile.local
index 04913a06bf61387204d8bbd00feb88ddd25fa072..40b7c14fff280e84bcaae09fd706aab4afa6ba6d 100644 (file)
@@ -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,