From: Stefano Lattarini Date: Sat, 7 Jul 2012 19:11:00 +0000 (+0200) Subject: [ng] clean: do not exceed command line length limits, even with many files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec230adffaec4c7ce7203b4ef83a9823406bac7;p=thirdparty%2Fautomake.git [ng] clean: do not exceed command line length limits, even with many files * lib/am/clean.am (.am.rm-f, .am.rm-rf): New internal functions. (.am.clean-cmd.f, .am.clean-cmd.d): Rewritten using them and the 'am.xargs-map' function, in a way that should prevent failures due to excessive command line lengths. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/clean.am b/lib/am/clean.am index d05cd660d..bc11bc4c7 100644 --- a/lib/am/clean.am +++ b/lib/am/clean.am @@ -14,8 +14,11 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . -.am.clean-cmd.f = $(if $(strip $1),rm -f $(strip $1)) -.am.clean-cmd.d = $(if $(strip $1),rm -rf $(strip $1)) +.am.rm-f = $(if $(strip $1),rm -f $(strip $1)$(am__newline)) +.am.rm-rf = $(if $(strip $1),rm -rf $(strip $1)$(am__newline)) + +.am.clean-cmd.f = $(call am.xargs-map,.am.rm-f,$1) +.am.clean-cmd.d = $(call am.xargs-map,.am.rm-rf,$1) am__mostlyclean_files += $(MOSTLYCLEANFILES) am__clean_files += $(CLEANFILES)