aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2011-03-09 15:02:42 -0800
committerGravatar Carl Worth <cworth@cworth.org>2011-03-09 15:10:03 -0800
commit3e4a9d60a9419621b08c647a306843d76c47c2cb (patch)
tree4da0a61befaed93e721a44db12a2b1e8b931fce7 /emacs/Makefile.local
parent38f46b6869d3c5f4555e2da3a07700b3c94583a7 (diff)
build: Add support for non-source-directory builds.
Such as: mkdir build cd build ../configure make This is implemented by having the configure script set a srcdir variable in Makefile.config, and then sprinkling $(srcdir) into various make rules. We also use vpath directives to convince GNU make to find the source files from the original source directory.
Diffstat (limited to 'emacs/Makefile.local')
-rw-r--r--emacs/Makefile.local4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index 1c4166fe..1c09d87a 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -15,9 +15,9 @@ emacs_sources := \
$(dir)/coolj.el
emacs_images := \
- $(dir)/notmuch-logo.png
+ $(srcdir)/$(dir)/notmuch-logo.png
-emacs_bytecode := $(subst .el,.elc,$(emacs_sources))
+emacs_bytecode = $(emacs_sources:.el=.elc)
%.elc: %.el
$(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<