[Top][All Lists]

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

Re: command line limitation

From: Dan Clarke
Subject: Re: command line limitation
Date: Fri, 14 Jul 2006 10:28:47 +0000
User-agent: Thunderbird (Windows/20060308)

I had the same problem.  I just do this ....

        $(shell if exist project.lnk del project.lnk)
        $(foreach n, $(link_options), $(shell echo $(n) >> project.lnk))
        $(foreach n, $(lib_files), $(shell echo $(n) >> project.lnk))
        $(foreach n, $(c_object_files), $(shell echo $(n) >> project.lnk))

- Dan

ma wrote:
"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
system complains that the command line is too long. The other way is to
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
gmake? Is there any function in gmake that help to write a variable into a
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

Or create the $(Long_Var), chop it in bits and write the parts to the file
using append.

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 ...


            $(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?


Make-w32 mailing list

reply via email to

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