2010-03-21 10:54:08 +01:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2010-03-10 19:59:57 +01:00
|
|
|
dir := emacs
|
2010-04-01 19:36:21 +02:00
|
|
|
emacs_sources := \
|
|
|
|
$(dir)/notmuch-lib.el \
|
|
|
|
$(dir)/notmuch.el \
|
2010-04-05 18:46:16 +02:00
|
|
|
$(dir)/notmuch-query.el \
|
2010-03-22 17:49:16 +01:00
|
|
|
$(dir)/notmuch-show.el \
|
|
|
|
$(dir)/notmuch-wash.el
|
2010-02-10 04:45:28 +01:00
|
|
|
|
2010-03-10 19:59:57 +01:00
|
|
|
emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
|
2010-02-10 04:45:28 +01:00
|
|
|
|
2010-04-06 19:35:20 +02:00
|
|
|
%.elc: %.el
|
|
|
|
$(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EMACS),1)
|
|
|
|
all: $(emacs_bytecode)
|
|
|
|
endif
|
|
|
|
|
|
|
|
install: install-emacs
|
2010-02-10 04:45:28 +01:00
|
|
|
|
2010-04-05 21:59:06 +02:00
|
|
|
.PHONY: install-emacs
|
2010-04-06 19:35:20 +02:00
|
|
|
install-emacs:
|
2010-04-07 00:05:13 +02:00
|
|
|
mkdir -p $(DESTDIR)$(emacslispdir)
|
|
|
|
install -m0644 $(emacs_sources) $(DESTDIR)$(emacslispdir)
|
2010-04-06 19:35:20 +02:00
|
|
|
ifeq ($(HAVE_EMACS),1)
|
2010-04-07 00:05:13 +02:00
|
|
|
install -m0644 $(emacs_bytecode) $(DESTDIR)$(emacslispdir)
|
2010-04-06 19:35:20 +02:00
|
|
|
endif
|
2010-02-10 04:45:28 +01:00
|
|
|
|
|
|
|
CLEAN := $(CLEAN) $(emacs_bytecode)
|