]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
configure: Add support for a --includedir option
[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
10 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
11
12 %.elc: %.el
13         $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
14
15 ifeq ($(HAVE_EMACS),1)
16 all: $(emacs_bytecode)
17 endif
18
19 install: install-emacs
20
21 .PHONY: install-emacs
22 install-emacs:
23         mkdir -p $(DESTDIR)/$(emacs_lispdir)
24         install -m0644 $(emacs_sources) $(DESTDIR)$(emacs_lispdir)
25 ifeq ($(HAVE_EMACS),1)
26         install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacs_lispdir)
27 endif
28
29 CLEAN := $(CLEAN) $(emacs_bytecode)