+2013-11-04 Glenn Morris <rgm@gnu.org>
+
+ * automated/Makefile.in (abs_srcdir): Remove.
+ (emacs): Unset EMACSLOADPATH.
+ (.el.elc, check): Use -L to append srcdir to load-path.
+
2013-11-02 Glenn Morris <rgm@gnu.org>
* automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp)
SHELL = @SHELL@
srcdir = @srcdir@
-abs_srcdir = @abs_srcdir@
VPATH = $(srcdir)
# We never change directory before running Emacs, so a relative file
BYTE_COMPILE_EXTRA_FLAGS =
# The actual Emacs command run in the targets below.
-emacs = EMACSLOADPATH="$(abs_srcdir)/../../lisp:$(abs_srcdir)" LC_ALL=C "$(EMACS)" $(EMACSOPT)
+# Prevent any setting of EMACSLOADPATH in user environment causing problems.
+emacs = unset EMACSLOADPATH; LC_ALL=C "$(EMACS)" $(EMACSOPT)
# Common command to find subdirectories
setwins=subdirs=`find . -type d -print`; \
.el.elc:
@echo Compiling $<
- @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
+ @$(emacs) -L :$(srcdir) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
.PHONY: compile-targets compile-main compile-clean
done; \
echo Testing $$els; \
cd "$$thisdir"; \
- $(emacs) --chdir $(srcdir) $$args -f ert-run-tests-batch-and-exit
+ $(emacs) --chdir $(srcdir) -L :. $$args -f ert-run-tests-batch-and-exit
# Makefile ends here.