From: David Bremner Date: Sun, 21 Apr 2019 23:36:43 +0000 (-0300) Subject: build: only try to build .rsti files if we have emacs and sphinx X-Git-Tag: archive/debian/0.29_rc0-1~96 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=e4a8d6e2a4355f54cb73d3b27afb0ce19ce7eb0d 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 --- 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,