From: Glenn Morris Date: Thu, 21 Nov 2013 00:26:05 +0000 (-0500) Subject: * test/automated/Makefile.in (XARGS_LIMIT): New, set by configure. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~766 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=009111d66f5e7b0c1971bed68d951390c63e0ba8;p=emacs.git * test/automated/Makefile.in (XARGS_LIMIT): New, set by configure. (compile-main): Pass XARGS_LIMIT to xargs. (Cargo-culted from lisp/Makefile.in.) --- diff --git a/test/ChangeLog b/test/ChangeLog index 601c8d3bb82..9db79e71617 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,5 +1,8 @@ 2013-11-21 Glenn Morris + * 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. diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index ced75f0b583..2169ce0d224 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in @@ -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