]> git.notmuchmail.org Git - notmuch/blob - emacs/Makefile.local
Makefile: Quote variables used as filenames in shell commands
[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)/coolj.el
16
17 emacs_images := \
18         $(dir)/notmuch-logo.png
19
20 emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
21
22 %.elc: %.el
23         $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
24
25 ifeq ($(WITH_EMACS),1)
26 ifeq ($(HAVE_EMACS),1)
27 all: $(emacs_bytecode)
28 endif
29
30 install: install-emacs
31 endif
32
33 .PHONY: install-emacs
34 install-emacs:
35         mkdir -p "$(DESTDIR)$(emacslispdir)"
36         install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
37 ifeq ($(HAVE_EMACS),1)
38         install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
39 endif
40         install -m0644 $(emacs_images) "$(DESTDIR)$(emacslispdir)"
41
42 CLEAN := $(CLEAN) $(emacs_bytecode)