]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/Makefile.in (compile-main): Use a more selective regexp.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Dec 2018 15:06:34 +0000 (10:06 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Dec 2018 15:06:34 +0000 (10:06 -0500)
lisp/Makefile.in

index c4475982981ee033b439981614926c743fb29382..32f2c1d28a006f34706691469544bcd7f2239ab0 100644 (file)
@@ -321,14 +321,16 @@ compile-targets: $(TARGETS)
 # Compile all the Elisp files that need it.  Beware: it approximates
 # 'no-byte-compile', so watch out for false-positives!
 compile-main: gen-lisp compile-clean
-       @(cd $(lisp) && \
+       @(cd $(lisp) &&                              \
        els=`echo "${SUBDIRS_REL} " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
-       for el in ${MAIN_FIRST} $$els; do \
-         test -f $$el || continue; \
-         test ! -f $${el}c && GREP_OPTIONS= grep '^;.*no-byte-compile: t' $$el > /dev/null && continue; \
-         echo "$${el}c"; \
-       done | xargs $(XARGS_LIMIT) echo) | \
-       while read chunk; do \
+       for el in ${MAIN_FIRST} $$els; do            \
+         test -f $$el || continue;                  \
+         test ! -f $${el}c &&                       \
+             GREP_OPTIONS= grep '^;.*[^a-zA-Z]no-byte-compile: *t' $$el > /dev/null && \
+             continue;                              \
+         echo "$${el}c";                            \
+       done | xargs $(XARGS_LIMIT) echo) |          \
+       while read chunk; do                         \
          $(MAKE) compile-targets TARGETS="$$chunk"; \
        done