5 $(dir)/notmuch-lib.el \
6 $(dir)/notmuch-parser.el \
8 $(dir)/notmuch-query.el \
9 $(dir)/notmuch-show.el \
10 $(dir)/notmuch-tree.el \
11 $(dir)/notmuch-wash.el \
12 $(dir)/notmuch-hello.el \
13 $(dir)/notmuch-mua.el \
14 $(dir)/notmuch-address.el \
15 $(dir)/notmuch-maildir-fcc.el \
16 $(dir)/notmuch-message.el \
17 $(dir)/notmuch-crypto.el \
18 $(dir)/notmuch-tag.el \
20 $(dir)/notmuch-print.el
23 $(srcdir)/$(dir)/notmuch-logo.png
25 emacs_bytecode = $(emacs_sources:.el=.elc)
27 # Because of defmacro's and defsubst's, we have to account for load
28 # dependencies between Elisp files when byte compiling. Otherwise,
29 # the byte compiler may load an old .elc file when processing a
30 # "require" or we may fail to rebuild a .elc that depended on a macro
31 # from an updated file.
32 $(dir)/.eldeps: $(dir)/Makefile.local $(dir)/make-deps.el $(emacs_sources)
33 $(call quiet,EMACS) --directory emacs -batch -l make-deps.el \
34 -f batch-make-deps $(emacs_sources) > $@.tmp && \
35 (cmp -s $@.tmp $@ || mv $@.tmp $@)
36 -include $(dir)/.eldeps
37 CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp
39 %.elc: %.el $(global_deps)
40 $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
42 ifeq ($(WITH_EMACS),1)
43 ifeq ($(HAVE_EMACS),1)
44 all: $(emacs_bytecode)
47 install: install-emacs
52 mkdir -p "$(DESTDIR)$(emacslispdir)"
53 install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
54 ifeq ($(HAVE_EMACS),1)
55 install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
57 mkdir -p "$(DESTDIR)$(emacsetcdir)"
58 install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
60 CLEAN := $(CLEAN) $(emacs_bytecode)