5 $(dir)/notmuch-lib.el \
7 $(dir)/notmuch-query.el \
10 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
13 $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
15 ifeq ($(HAVE_EMACS),1)
16 all: $(emacs_bytecode)
19 install: install-emacs
23 mkdir -p $(DESTDIR)$(emacslispdir)
24 install -m0644 $(emacs_sources) $(DESTDIR)$(emacslispdir)
25 ifeq ($(HAVE_EMACS),1)
26 install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacslispdir)
29 CLEAN := $(CLEAN) $(emacs_bytecode)