From: Stefano Lattarini Date: Sat, 14 Jul 2012 20:46:20 +0000 (+0200) Subject: elisp: simplify suffix rules using emacs '-L' option X-Git-Tag: v1.12b~64^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc5c9acb05b5e42ca02b861568ee191876dea6f;p=thirdparty%2Fautomake.git elisp: simplify suffix rules using emacs '-L' option * 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 --- diff --git a/lib/am/lisp.am b/lib/am/lisp.am index ba15bf1a8..582d8f3c5 100644 --- a/lib/am/lisp.am +++ b/lib/am/lisp.am @@ -32,8 +32,7 @@ endif %?INSTALL% ## so 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