2 emacs_sources := $(dir)/notmuch.el
4 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
6 emacs: $(emacs_bytecode)
8 install-emacs: install emacs
9 for d in $(DESTDIR)/$(emacs_lispdir) ; \
13 for f in $(emacs_sources) $(emacs_bytecode); \
15 install -m0644 $$f $(DESTDIR)$(emacs_lispdir) ;\
18 @echo "The notmuch emacs client is now installed."
20 @echo "To run this, each user should add the following line to the ~/.emacs file:"
22 @echo " (require 'notmuch)"
24 @echo "And should then run \"M-x notmuch\" from within emacs or run \"emacs -f notmuch\""
27 CLEAN := $(CLEAN) $(emacs_bytecode)