[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: command line limitation
From: |
ma |
Subject: |
Re: command line limitation |
Date: |
Fri, 14 Jul 2006 11:17:01 +0100 |
"Leeuwesteijn,Joost" <address@hidden> wrote in message
news:address@hidden
> Hi ma, (what's for dinner? :-) )
>
>> When I am trying to pass it to any function (ar for example), the
> operating
>> system complains that the command line is too long. The other way is to
> put
>> this variable in a text file and call ar in this way:
>> ar @a.txt
>> The problem is I don't know how I can write this variable
>> into a file? I can't use something such as echo $(Long_Var) >a.txt since
>> then the command line to echo is too long. Is there any way that I can do
> in
>> gmake? Is there any function in gmake that help to write a variable into
>> a
> file?
>> I am using gmake on windows xp
>
> Can you write to the file in steps? Using append?
> echo $(smaller_var) > a.txt
> echo $(smaller_var2) >> a.txt
> echo $(smaller_var3) >> a.txt
> etc.
>
> Or create the $(Long_Var), chop it in bits and write the parts to the file
> using append.
>
> Regards,
> Joost Leeuwesteijn
>
>
> ---
> Important Note:
>
> This e-mail message and any attachments are confidential and may be
> privileged or otherwise protected from disclosure. If you are not the
> intended recipient you must not use, copy, disclose or take any action
> based on this e-mail or any information and attachment contained in the
> message. If you have received this e-mail in error, please advise the
> sender immediately by reply e-mail or telephone and delete this message
> and any attachment from your system.
>
> Thank you.
Thanks but I can't use this approach as the make file is an automatically
generated one and unfortunately it put all of the obj files in one variable.
Can I break the variable without using shell commands? Any example of this?
For example I am thinking of something such as this:
lib_obj: a0001.obj a0002.obj ...
Lib:
$(forecah w in lib_obj)
Echo $w >test.txt
ar @test.txt
The difference between this solution and Maxim solution is that in this
case, I used gmake function and not shell function?
Regards