]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
Makefile: Fix Makefiles to depend on all child Makefile fragments.
[notmuch] / emacs / Makefile.local
1 dir := emacs
2 emacs_sources := $(dir)/notmuch.el
3
4 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
5
6 emacs: $(emacs_bytecode)
7
8 install-emacs: install emacs
9         for d in $(DESTDIR)/$(emacs_lispdir) ; \
10         do \
11                 install -d $$d ; \
12         done ;
13         for f in $(emacs_sources) $(emacs_bytecode); \
14         do \
15                 install -m0644 $$f $(DESTDIR)$(emacs_lispdir) ;\
16         done;
17         @echo ""
18         @echo "The notmuch emacs client is now installed."
19         @echo ""
20         @echo "To run this, each user should add the following line to the ~/.emacs file:"
21         @echo ""
22         @echo " (require 'notmuch)"
23         @echo ""
24         @echo "And should then run \"M-x notmuch\" from within emacs or run \"emacs -f notmuch\""
25         @echo ""
26
27 CLEAN := $(CLEAN) $(emacs_bytecode)