]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
debian: bump standards version to 3.9.4
[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         $(dir)/notmuch-wash.el \
10         $(dir)/notmuch-hello.el \
11         $(dir)/notmuch-mua.el \
12         $(dir)/notmuch-address.el \
13         $(dir)/notmuch-maildir-fcc.el \
14         $(dir)/notmuch-message.el \
15         $(dir)/notmuch-crypto.el \
16         $(dir)/notmuch-tag.el \
17         $(dir)/coolj.el \
18         $(dir)/notmuch-print.el
19
20 emacs_images := \
21         $(srcdir)/$(dir)/notmuch-logo.png
22
23 emacs_bytecode = $(emacs_sources:.el=.elc)
24
25 %.elc: %.el $(global_deps)
26         $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
27
28 ifeq ($(WITH_EMACS),1)
29 ifeq ($(HAVE_EMACS),1)
30 all: $(emacs_bytecode)
31 endif
32
33 install: install-emacs
34 endif
35
36 .PHONY: install-emacs
37 install-emacs:
38         mkdir -p "$(DESTDIR)$(emacslispdir)"
39         install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
40 ifeq ($(HAVE_EMACS),1)
41         install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
42 endif
43         mkdir -p "$(DESTDIR)$(emacsetcdir)"
44         install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
45
46 CLEAN := $(CLEAN) $(emacs_bytecode)