]> code.delx.au - gnu-emacs/commitdiff
* test/automated/Makefile.in (XARGS_LIMIT): New, set by configure.
authorGlenn Morris <rgm@gnu.org>
Thu, 21 Nov 2013 00:26:05 +0000 (19:26 -0500)
committerGlenn Morris <rgm@gnu.org>
Thu, 21 Nov 2013 00:26:05 +0000 (19:26 -0500)
(compile-main): Pass XARGS_LIMIT to xargs.

(Cargo-culted from lisp/Makefile.in.)

test/ChangeLog
test/automated/Makefile.in

index 601c8d3bb82d71a24132e89024da3ca7dcff1bed..9db79e716173f222ad4b7f9b3b6c0846a53cd87b 100644 (file)
@@ -1,5 +1,8 @@
 2013-11-21  Glenn Morris  <rgm@gnu.org>
 
+       * automated/Makefile.in (XARGS_LIMIT): New, set by configure.
+       (compile-main): Pass XARGS_LIMIT to xargs.
+
        * automated/Makefile.in (PATH_SEPARATOR): New, set by configure.
        (EMACSOPT): Use PATH_SEPARATOR.
 
index ced75f0b5836f69f480acf6ab2a2f87b8227b87a..2169ce0d22447caeda09a5ec55ad246ab86e2cbb 100644 (file)
@@ -24,6 +24,10 @@ VPATH = $(srcdir)
 
 PATH_SEPARATOR = @PATH_SEPARATOR@
 
+# Empty for all systems except MinGW, where xargs needs an explicit
+# limitation.
+XARGS_LIMIT = @XARGS_LIMIT@
+
 # We never change directory before running Emacs, so a relative file
 # name is fine, and makes life easier.  If we need to change
 # directory, we can use emacs --chdir.
@@ -76,7 +80,7 @@ compile-main: compile-clean
          test -f $$el || continue; \
          test ! -f $${el}c && GREP_OPTIONS= grep '^;.*no-byte-compile: t' $$el > /dev/null && continue; \
          echo "$${el}c"; \
-       done | xargs echo | \
+       done | xargs $(XARGS_LIMIT) echo | \
        while read chunk; do \
          $(MAKE) $(MFLAGS) compile-targets EMACS="$(EMACS)" TARGETS="$$chunk"; \
        done