]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
elisp: simplify suffix rules using emacs '-L' option
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 20:46:20 +0000 (22:46 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 15 Jul 2012 07:52:47 +0000 (09:52 +0200)
* 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.lattarini@gmail.com>
lib/am/lisp.am

index ba15bf1a8a097bdd6f5df670a3ff5a3ecb4218ed..582d8f3c5f5a9a719ba4d8e6296d86cfa37eb571 100644 (file)
@@ -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