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