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