From 009111d66f5e7b0c1971bed68d951390c63e0ba8 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 20 Nov 2013 19:26:05 -0500 Subject: [PATCH] * test/automated/Makefile.in (XARGS_LIMIT): New, set by configure. (compile-main): Pass XARGS_LIMIT to xargs. (Cargo-culted from lisp/Makefile.in.) --- test/ChangeLog | 3 +++ test/automated/Makefile.in | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2