aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/Makefile.local
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2014-03-19 22:37:10 +0200
committerGravatar David Bremner <david@tethera.net>2014-04-10 23:25:36 -0300
commitcab1415a94f09c529ca7323904c5a159c996cbe0 (patch)
tree4ea2848a8dc8e87ded01ef4d63eb37576790be90 /emacs/Makefile.local
parentfeb3ce957213350db6c3e954cf4016aced1f65ce (diff)
emacs: add notmuch-version.el.tmpl and create notmuch-version.el from it
The notmuch cli program and emacs lisp versions may differ (especially in remote usage). It helps to resolve problems if we can determine the versions of notmuch cli and notmuch emacs mua separately. The build process now creates notmuch-version.el from template file by filling the version info to notmuch-emacs-version variable.
Diffstat (limited to 'emacs/Makefile.local')
-rw-r--r--emacs/Makefile.local11
1 files changed, 9 insertions, 2 deletions
diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index 6a39b32d..ca039e59 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -17,7 +17,14 @@ emacs_sources := \
$(dir)/notmuch-crypto.el \
$(dir)/notmuch-tag.el \
$(dir)/coolj.el \
- $(dir)/notmuch-print.el
+ $(dir)/notmuch-print.el \
+ $(dir)/notmuch-version.el
+
+$(dir)/notmuch-version.el: $(dir)/Makefile.local version.stamp
+$(dir)/notmuch-version.el: $(dir)/notmuch-version.el.tmpl
+ @sed -e 's/%AG%/Generated file (from $(<F)) -- do not edit!/' \
+ -e 's/%VERSION%/"$(VERSION)"/' $< > $@
+
emacs_images := \
$(srcdir)/$(dir)/notmuch-logo.png
@@ -71,4 +78,4 @@ endif
mkdir -p "$(DESTDIR)$(emacsetcdir)"
install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
-CLEAN := $(CLEAN) $(emacs_bytecode)
+CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el