From 3e4a9d60a9419621b08c647a306843d76c47c2cb Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 9 Mar 2011 15:02:42 -0800 Subject: 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. --- emacs/Makefile.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emacs/Makefile.local') 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 $< -- cgit v1.2.3