summaryrefslogtreecommitdiff
path: root/lisp/Makefile.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-05-30 09:27:33 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-05-30 09:28:19 -0700
commit1b01601d3f5d34a267c47e5d1208aa01730dd157 (patch)
tree20f3d5af4671d411e3c039ce8d7c755bbc839a98 /lisp/Makefile.in
parent91a52e38e5194f19f0d44ae4c2ad88565b28a196 (diff)
downloademacs-1b01601d3f5d34a267c47e5d1208aa01730dd157.tar.gz
Skip .#* temporaries when finding sources
Without this patch, ‘make check’ can fail with the diagnostic ‘invalid syntax in conditional’ if there is an Emacs temporary file whose name starts with ‘.#’, because the ‘#’ is treated as the start of a Make comment. * lisp/Makefile.in (loaddefs, tagsfiles, check-defun-deps): * test/Makefile.in (ELFILES): Skip files starting with ‘.’, so that the .#* files do not cause trouble. (We cannot easily skip just files starting with ‘.#’, since ‘#’ starts a Make comment!)
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r--lisp/Makefile.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index ba4925fb792..653200577db 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -78,7 +78,7 @@ LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
$(lisp)/net/tramp-loaddefs.el
# All generated autoload files.
-loaddefs = $(shell find ${srcdir} -name '*loaddefs.el')
+loaddefs = $(shell find ${srcdir} -name '*loaddefs.el' ! -name '.*')
# Elisp files auto-generated.
AUTOGENEL = ${loaddefs} ${srcdir}/cus-load.el ${srcdir}/finder-inf.el \
${srcdir}/subdirs.el ${srcdir}/eshell/esh-groups.el
@@ -243,8 +243,8 @@ update-gnus-news:
FORCE:
.PHONY: FORCE
-tagsfiles = $(shell find ${srcdir} -name '*.el')
-tagsfiles := $(filter-out ${srcdir}/%loaddefs.el,${tagsfiles})
+tagsfiles = $(shell find ${srcdir} -name '*.el' \
+ ! -name '.*' ! -name '*loaddefs.el')
tagsfiles := $(filter-out ${srcdir}/ldefs-boot.el,${tagsfiles})
tagsfiles := $(filter-out ${srcdir}/eshell/esh-groups.el,${tagsfiles})
@@ -470,7 +470,7 @@ check-declare:
## This finds a lot of duplicates between foo.el and obsolete/foo.el.
check-defun-dups:
sed -n -e '/^(defun /s/\(.\)(.*/\1/p' \
- $$(find . -name '*.el' -print | \
+ $$(find . -name '*.el' ! -name '.*' -print | \
grep -Ev '(loaddefs|ldefs-boot)\.el|obsolete') | sort | uniq -d
# Dependencies