[PATCH] emacs: add $(srcdir) to notmuch-version.el.tmpl dependency

Subject: [PATCH] emacs: add $(srcdir) to notmuch-version.el.tmpl dependency

Date: Sat, 12 Apr 2014 14:59:46 +0300

To: notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: Tomi Ollila


This fixes out-of-tree build when generating emacs/notmuch-version.el.
---
 emacs/Makefile.local | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index ca039e5..dcb4995 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -21,7 +21,7 @@ emacs_sources := \
 	$(dir)/notmuch-version.el
 
 $(dir)/notmuch-version.el: $(dir)/Makefile.local version.stamp
-$(dir)/notmuch-version.el: $(dir)/notmuch-version.el.tmpl
+$(dir)/notmuch-version.el: $(srcdir)/$(dir)/notmuch-version.el.tmpl
 	@sed -e 's/%AG%/Generated file (from $(<F)) -- do not edit!/' \
 	     -e 's/%VERSION%/"$(VERSION)"/' $< > $@
 
-- 
1.8.0


Thread: