[Top][All Lists]
[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
- [Automake-NG] [PATCH 0/6] clean: avoid issues with excessive command line length, Stefano Lattarini, 2012/07/07
- [Automake-NG] [PATCH 1/6] [ng] coverage: cleaning rules with lots of files to clean, Stefano Lattarini, 2012/07/07
- [Automake-NG] [PATCH 2/6] [ng] am.xargs-map: new internal make function, Stefano Lattarini, 2012/07/07
- [Automake-NG] [PATCH 3/6] [ng] am.xargs-map: be usable with huge lists, Stefano Lattarini, 2012/07/07
- [Automake-NG] [PATCH 4/6] [ng] coverage: $(am__newline) should never be stripped off, Stefano Lattarini, 2012/07/07
- [Automake-NG] [PATCH 5/6] [ng] $(am__newline): will not be stripped unexpectedly, Stefano Lattarini, 2012/07/07
[Automake-NG] [PATCH 6/6] [ng] clean: do not exceed command line length limits, even with many files,
Stefano Lattarini <=
Re: [Automake-NG] [PATCH 0/6] clean: avoid issues with excessive command line length, Akim Demaille, 2012/07/09