make-w32
[Top][All Lists]
Advanced

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

Re: Help with GNUMAKE on PC platform - command line lenght limitations


From: Greg Chicares
Subject: Re: Help with GNUMAKE on PC platform - command line lenght limitations
Date: Tue, 29 Jul 2003 16:22:41 -0400

"Ron.E.Gaskins" wrote:
> 
> In OPUSMAKE there was a function called FOREACH that could be used as follows:
> 
> !foreach X in $(FILES)
>         erase $(X)
> 
> This resulted in 99 separate calls to erase.  The FOREACH in GNUMAKE does not 
> appear to have the same functionality.  What is the best way to handle 
> $(FILES) on a DOS command line?

The syntax would be more like this [untested]:

  $(foreach file, $(FILES), $(shell erase $(file)))

but depending on your choice OS and shell, that
might be painfully slow.




reply via email to

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