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 \
21 $(dir)/notmuch-version.el \
22 $(dir)/notmuch-jump.el \
23 $(dir)/notmuch-company.el
25 $(dir)/notmuch-version.el: $(dir)/Makefile.local version.stamp
26 $(dir)/notmuch-version.el: $(srcdir)/$(dir)/notmuch-version.el.tmpl
27 @sed -e 's/%AG%/Generated file (from $(<F)) -- do not edit!/' \
28 -e 's/%VERSION%/"$(VERSION)"/' $< > $@
32 $(srcdir)/$(dir)/notmuch-logo.png
34 # Do not try to install files that are not byte-compiled.
35 emacs_no_byte_compile := $(dir)/notmuch-company.el
37 emacs_bytecode = $(patsubst %.el,%.elc,$(filter-out $(emacs_no_byte_compile),$(emacs_sources)))
39 # Because of defmacro's and defsubst's, we have to account for load
40 # dependencies between Elisp files when byte compiling. Otherwise,
41 # the byte compiler may load an old .elc file when processing a
42 # "require" or we may fail to rebuild a .elc that depended on a macro
43 # from an updated file.
44 ifeq ($(HAVE_EMACS),1)
45 $(dir)/.eldeps: $(dir)/Makefile.local $(dir)/make-deps.el $(emacs_sources)
46 $(call quiet,EMACS) --directory emacs -batch -l make-deps.el \
47 -f batch-make-deps $(emacs_sources) > $@.tmp && \
49 # We could include .eldeps directly, but that would cause a make
50 # restart whenever any .el file was modified, even if dependencies
51 # didn't change, because the mtime of .eldeps will change. Instead,
52 # we include a second file, .eldeps.x, which we ensure always has the
53 # same content as .eldeps, but its mtime only changes when dependency
54 # information changes, in which case a make restart is necessary
56 $(dir)/.eldeps.x: $(dir)/.eldeps
57 @cmp -s $^ $@ || cp $^ $@
58 -include $(dir)/.eldeps.x
60 CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp $(dir)/.eldeps.x
62 ifeq ($(HAVE_EMACS),1)
63 %.elc: %.el $(global_deps)
64 $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
67 ifeq ($(WITH_EMACS),1)
68 ifeq ($(HAVE_EMACS),1)
69 all: $(emacs_bytecode)
70 install-emacs: $(emacs_bytecode)
73 install: install-emacs
77 install-emacs: $(emacs_sources) $(emacs_images)
78 mkdir -p "$(DESTDIR)$(emacslispdir)"
79 install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
80 ifeq ($(HAVE_EMACS),1)
81 install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
83 mkdir -p "$(DESTDIR)$(emacsetcdir)"
84 install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
86 CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el