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