summaryrefslogtreecommitdiff
path: root/lib/am/lisp.am
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-14 22:42:48 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-07-15 09:52:39 +0200
commitfec53184220122d7ff8c88757be4d2eaafec13b2 (patch)
tree5471bff6e0cd645a1866c192dc332e04850255a1 /lib/am/lisp.am
parent7cd72e5d9283fcd778e7d694d3a420b934e842d3 (diff)
downloadautomake-fec53184220122d7ff8c88757be4d2eaafec13b2.tar.gz
elisp: no need to "absolutize" $(srcdir) and $(builddir) ...
* lib/am/lisp.am (.el.elc): ... here: we don't chdir around anyway, nor move or copy around our source '.el' files. Update comments, and re-wrap them while we are at it. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'lib/am/lisp.am')
-rw-r--r--lib/am/lisp.am17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/am/lisp.am b/lib/am/lisp.am
index ce87fb02f..ba15bf1a8 100644
--- a/lib/am/lisp.am
+++ b/lib/am/lisp.am
@@ -23,16 +23,17 @@ endif %?INSTALL%
## ---------- ##
.el.elc:
-## We add $(abs_builddir) and $(abs_srcdir) to load-path, so that any
-## .el files that $< depends upon can be found (including generated
-## ones). Prefer files from the build directory to those from the source
-## directory, in true VPATH spirit. The destination file is normally
-## determined by appending "c" to the input (which would erronously put
-## it in $(srcdir) in VPATH builds), so we override that, too.
+## We add $(builddir) and $(srcdir) to load-path, so that any '.el' files
+## that $< depends upon can be found (including generated ones).
+## We prefer files from the build directory to those from the source
+## directory, in true VPATH spirit.
+## The destination file is normally determined by appending "c" to the
+## input (which would erronously put it in $(srcdir) in VPATH builds),
+## so we override that, too.
if test "$(EMACS)" != "no"; then \
$(EMACS) -q --batch \
- --eval "(setq load-path (cons \"$(abs_srcdir)\" load-path))" \
- --eval "(setq load-path (cons \"$(abs_builddir)\" load-path))" \
+ --eval "(setq load-path (cons \"$(srcdir)\" load-path))" \
+ --eval "(setq load-path (cons \"$(builddir)\" load-path))" \
--eval "(defun byte-compile-dest-file (f) \"$@\")" \
--eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \
else :; fi