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: Eli Zaretskii
Subject: Re: Help with GNUMAKE on PC platform - command line lenght limitations
Date: Wed, 30 Jul 2003 17:17:10 +0200

> Date: Wed, 30 Jul 2003 08:38:53 -0500
> From: "Ron.E.Gaskins" <address@hidden>
> 
> I am using a WIN32 build of GNUMAKE version 3.80 (Built with MSVC).  I have 2 
> problems.
> 
> First command line length.  From a Windows Command Window I am limited to ~2K 
> of characters for a given command.

What version of Windows is that?  I think all modern Windows versions
allow much longer command lines.

> Your response file idea (@file)  may be a solution for problem 1 but how will 
> gnumake populate the @file since "echo $(Files) > response.tmp" will also 
> violate the 2K command line limit?

You can use "echo ... >> response.tmp" to add files.

> Both problems go back to a quest for a looping mechanism in GNUMAKE.  I'm 
> experimenting with the $(foreach...), $(eval .....) and $(shell ....) but 
> have had no luck.  Any suggestions?

I don't think $foreach could be easily used to do what you want, as
it was not meant to be used inside commands, only in variables.




reply via email to

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