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