]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
51d045c3e108a0478fc9ca908b9eb96633a41227
[notmuch] / emacs / Makefile.local
1 # -*- makefile -*-
2
3 dir := emacs
4 emacs_sources := \
5         $(dir)/notmuch-lib.el \
6         $(dir)/notmuch.el \
7         $(dir)/notmuch-query.el \
8         $(dir)/notmuch-show.el
9
10 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
11
12 .PHONY: emacs
13 emacs: $(emacs_bytecode)
14
15 .PHONY: install-emacs
16 install-emacs: install emacs
17         mkdir -p $(DESTDIR)/$(emacs_lispdir)
18         install -m0644 $(emacs_sources) $(emacs_bytecode) $(DESTDIR)$(emacs_lispdir)
19         @echo ""
20         @echo "The notmuch emacs client is now installed."
21         @echo ""
22         @echo "To run this, each user should add the following line to the ~/.emacs file:"
23         @echo ""
24         @echo " (require 'notmuch)"
25         @echo ""
26         @echo "And should then run \"M-x notmuch\" from within emacs or run \"emacs -f notmuch\""
27         @echo ""
28
29 CLEAN := $(CLEAN) $(emacs_bytecode)