]> git.notmuchmail.org Git - notmuch/commitdiff
Makefile: Add the emacs directory to load-path when compiling
authorDavid Edmondson <dme@dme.org>
Thu, 1 Apr 2010 10:38:30 +0000 (11:38 +0100)
committerCarl Worth <cworth@cworth.org>
Sat, 3 Apr 2010 19:11:55 +0000 (12:11 -0700)
Reviewed-by: Carl Worth <cworth@cworth.org>: Presumably, this is to
enable proper building in the very near-term future where the emacs
implementation consists of multiple files where some will `require'
functions from others.

Makefile.local

index 1b8e222f268eddc709b7fb56031fc167575241b8..c3fc7c5ca14e67953b7526485bccdb14b51740a6 100644 (file)
@@ -78,7 +78,7 @@ quiet_symlink = $(call quiet_args,SYMLINK,$1)
        $(call quiet,CC,$(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@
 
 %.elc: %.el
        $(call quiet,CC,$(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@
 
 %.elc: %.el
-       $(call quiet,EMACS) -batch -f batch-byte-compile $<
+       $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<
 
 .deps/%.d: %.c $(global_deps)
        @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \
 
 .deps/%.d: %.c $(global_deps)
        @set -e; rm -f $@; mkdir -p $$(dirname $@) ; \