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
This commit is contained in:
David Bremner 2019-04-21 20:36:43 -03:00
parent c07e0cf256
commit e4a8d6e2a4

View 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,