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