Patchworkβ Add the emacs directory to the load-path when byte compiling

login
register
about
Submitter David Edmondson
Date 2010-03-12 13:08:54
Message ID <878w9xvg9l.fsf@aw.hh.sledj.net>
Download mbox | patch
Permalink /patch/423/
State New
Headers show

Comments

David Edmondson - 2010-03-12 13:08:54
When the emacs UI is split into multiple files they are likely to be
interdependent. Adding the emacs directory to the load-path means that
one file will be able to `require' another.

Signed-off-by: David Edmondson <dme@dme.org>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index 46f001c..f0b96e0 100644
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@  quiet ?= $($1)
 	$(call quiet,CC,$(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@
 
 %.elc: %.el
-	$(call quiet,EMACS) -batch -f batch-byte-compile $<
+	$(call quiet,EMACS) -batch -L emacs -f batch-byte-compile $<
 
 .deps/%.d: %.c $(global_deps)
 	@set -e; rm -f $@; mkdir -p $$(dirname $@) ; \