* lib/am/lisp.am (.el.elc): Use '-L dir' instead of calling '--eval' to explicitly append to the 'load-path' variable.
Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com> --- lib/am/lisp.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/am/lisp.am b/lib/am/lisp.am index 7326cb5..59c9fa9 100644 --- a/lib/am/lisp.am +++ b/lib/am/lisp.am @@ -32,8 +32,7 @@ endif %?INSTALL% ## we override that, too. if test "$(EMACS)" != "no"; then \ $(EMACS) -q --batch \ - --eval "(setq load-path (cons \"$(srcdir)\" load-path))" \ - --eval "(setq load-path (cons \"$(builddir)\" load-path))" \ + -L '$(builddir)' -L '$(srcdir)' \ --eval "(defun byte-compile-dest-file (f) \"$@\")" \ --eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \ else :; fi -- 1.7.9.5