[PATCH] emacs/Makefile.local: notmuch-lib.elc depend on notmuch-version.elc

Subject: [PATCH] emacs/Makefile.local: notmuch-lib.elc depend on notmuch-version.elc

Date: Sat, 26 Sep 2015 00:45:39 +0300

To: notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: Tomi Ollila


emacs/make-depend.el will compute all other related dependencies
except this one:

notmuch-version is not top-level `require' expression in
notmuc-lib.el[c] but conditional based on the existence of
notmuch-version.el[c].

emacs/make-depend.el does not know now notmuch-version.el[c] becomes
into existence but emacs/Makefile.local does know.
---
 emacs/Makefile.local | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index 1109cfa6b090..19e184edcbc7 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -52,6 +52,10 @@ $(dir)/.eldeps: $(dir)/Makefile.local $(dir)/make-deps.el $(emacs_sources)
 $(dir)/.eldeps.x: $(dir)/.eldeps
 	@cmp -s $^ $@ || cp $^ $@
 -include $(dir)/.eldeps.x
+
+# Add the one dependency make-deps.el does not have visibility to.
+$(dir)/notmuch-lib.elc: $(dir)/notmuch-version.elc
+
 endif
 CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp $(dir)/.eldeps.x
 
-- 
2.0.0


Thread: