automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 6/6] [ng] clean: do not exceed command line length


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 6/6] [ng] clean: do not exceed command line length limits, even with many files
Date: Sat, 7 Jul 2012 22:40:47 +0200

* 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 <address@hidden>
---
 lib/am/clean.am |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/am/clean.am b/lib/am/clean.am
index d05cd66..bc11bc4 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 <http://www.gnu.org/licenses/>.
 
-.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)
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]