]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
emacs: Add notmuch-address.el for address completion using notmuch
[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         $(dir)/notmuch-wash.el \
10         $(dir)/notmuch-hello.el \
11         $(dir)/notmuch-mua.el \
12         $(dir)/notmuch-address.el
13
14 emacs_images := \
15         $(dir)/notmuch-logo.png
16
17 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
18
19 %.elc: %.el
20         $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
21
22 ifeq ($(HAVE_EMACS),1)
23 all: $(emacs_bytecode)
24 endif
25
26 install: install-emacs
27
28 .PHONY: install-emacs
29 install-emacs:
30         mkdir -p $(DESTDIR)$(emacslispdir)
31         install -m0644 $(emacs_sources) $(DESTDIR)$(emacslispdir)
32 ifeq ($(HAVE_EMACS),1)
33         install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacslispdir)
34 endif
35         install -m0644 $(emacs_images) $(DESTDIR)$(emacslispdir)
36
37 CLEAN := $(CLEAN) $(emacs_bytecode)