69 # calls a tool multiple times with grouped arguments |
69 # calls a tool multiple times with grouped arguments |
70 # $(1) tool to call with any non-variable arguments |
70 # $(1) tool to call with any non-variable arguments |
71 # $(2) list of further variable arguments to group in 150 element calls |
71 # $(2) list of further variable arguments to group in 150 element calls |
72 define groupcallin50 |
72 define groupcallin50 |
73 $(if $2,$1 $(foreach L,$(wordlist 1,50,$2),$(L)),) |
73 $(if $2,$1 $(foreach L,$(wordlist 1,50,$2),$(L)),) |
74 $(if $2,$(call groupcallin50,$1,$(wordlist 51,$(words $2),$2)),true) |
74 $(if $2,$(call groupcallin50,$1,$(wordlist 51,$(words $2),$2)),@true) |
75 endef |
75 endef |
76 |
76 |
77 # echos content to a file in groups performing optional search/replace based on passed args |
77 # echos content to a file in groups performing optional search/replace based on passed args |
78 # $(1) template line with optional __VERBATIM__, __PATH__, __FILENAME__ replacements |
78 # $(1) template line with optional __VERBATIM__, __PATH__, __FILENAME__ replacements |
79 # $(2) list of pathed filenames to be batch processed and that can be used for template replacements |
79 # $(2) list of pathed filenames to be batch processed and that can be used for template replacements |
233 # we just publish that last one that is built. This mirrors what ABLD achieves, and avoids "overriding" warnings in |
233 # we just publish that last one that is built. This mirrors what ABLD achieves, and avoids "overriding" warnings in |
234 # makefile processing. |
234 # makefile processing. |
235 # note: the main call here needs to reside outside of start/endrule in order to avoid command line length issues. |
235 # note: the main call here needs to reside outside of start/endrule in order to avoid command line length issues. |
236 define gccxmlpackage |
236 define gccxmlpackage |
237 $(TEMPGXPARCHIVE): $(MMPXMLFILE) $(SRCXMLFILES) $(DEFFILE) |
237 $(TEMPGXPARCHIVE): $(MMPXMLFILE) $(SRCXMLFILES) $(DEFFILE) |
238 $$(call groupcallin50,$(ZIP) -j $$@,$$^ $(RFIFILES)) ; |
238 $$(call groupcallin50,@$(ZIP) -j $$@ > /dev/null 2>&1,$$^ $(RFIFILES)) ; |
239 $(call startrule,gccxmlpackage) \ |
239 $(call startrule,gccxmlpackage) \ |
240 $(GNURM) -f $(GXPARCHIVE) && \ |
240 $(GNURM) -f $(GXPARCHIVE) && \ |
241 $(GNUCP) $$@ $(GXPARCHIVE) \ |
241 $(GNUCP) $$@ $(GXPARCHIVE) \ |
242 $(if $(SAVESPACE),; $(GNURM) -rf $(VARIANTBLDPATH); true,) \ |
242 $(if $(SAVESPACE),; $(GNURM) -rf $(VARIANTBLDPATH); true,) \ |
243 $(call endrule,gccxmlpackage) |
243 $(call endrule,gccxmlpackage) |