]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
emacs: Add support for PGP/MIME verification/decryption
[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)/notmuch-crypto.el \
16         $(dir)/coolj.el
17
18 emacs_images := \
19         $(srcdir)/$(dir)/notmuch-logo.png
20
21 emacs_bytecode = $(emacs_sources:.el=.elc)
22
23 %.elc: %.el
24         $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
25
26 ifeq ($(WITH_EMACS),1)
27 ifeq ($(HAVE_EMACS),1)
28 all: $(emacs_bytecode)
29 endif
30
31 install: install-emacs
32 endif
33
34 .PHONY: install-emacs
35 install-emacs:
36         mkdir -p "$(DESTDIR)$(emacslispdir)"
37         install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
38 ifeq ($(HAVE_EMACS),1)
39         install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
40 endif
41         install -m0644 $(emacs_images) "$(DESTDIR)$(emacslispdir)"
42
43 CLEAN := $(CLEAN) $(emacs_bytecode)