emacs: add $(srcdir) to notmuch-version.el.tmpl dependency
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 12 Apr 2014 11:59:46 +0000 (14:59 +0300)
committerDavid Bremner <david@tethera.net>
Sun, 13 Apr 2014 11:42:51 +0000 (08:42 -0300)
This fixes out-of-tree build when generating emacs/notmuch-version.el.

emacs/Makefile.local

index ca039e598ee59f5ede3308f2203d0f20abac496b..dcb4995323af9e866766d35e58a3c42dcdb9a6a5 100644 (file)
@@ -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)"/' $< > $@