SHELL = @SHELL@
srcdir = @srcdir@
-abs_srcdir = @abs_srcdir@
top_srcdir = @top_srcdir@
-abs_top_builddir = @abs_top_builddir@
lisp = $(srcdir)
VPATH = $(srcdir)
$(lisp)/emacs-lisp/autoload.elc
# The actual Emacs command run in the targets below.
-
-emacs = EMACSLOADPATH="$(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`; \
lisptagsfiles3 = $(srcdir)/*/*/*.el
lisptagsfiles4 = $(srcdir)/*/*/*/*.el
-## Apparently the echo | sed | xargs is to stop the command line
-## getting too long on MS Windows. It will make no difference on
-## POSIX systems, where the shell does the globbing right away, before
-## passing the expanded arguments to echo.
-## The POSIX way would be to use find in a similar way to compile-main.
-## But maybe this is not even necessary any more now that this uses
-## relative filenames.
+## The echo | sed | xargs is to stop the command line getting too long
+## on MS Windows, when the MSYS Bash passes it to a MinGW compiled
+## etags. It might be better to use find in a similar way to
+## compile-main. But maybe this is not even necessary any more now
+## that this uses relative filenames.
TAGS: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
rm -f $@
touch $@