[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Writing Line breaks
From: |
Ashish Bajpai (DS/ESQ2) |
Subject: |
RE: Writing Line breaks |
Date: |
Fri, 14 Feb 2003 09:28:49 +0100 |
Hello Andreas,
You can try to invoke echo command three times.....that will insert line
break ......
For eg.
link.cmd:
echo file1.obj > $@
echo file2.obj >> $@
echo file3.obj >> $@
I could not think think of a better solution right now.
Regards,
Ashish
-----Original Message-----
From: Andreas Hagele [mailto:address@hidden
Sent: Donnerstag, 13. Februar 2003 23:59
To: address@hidden Org
Subject: Writing Line breaks
Hello,
I like to have make to insert line breaks between the file names written to
a linker response file
What I have currently is:
OBJ = file1.obj \
file2.obj \
file3.obj
link.cmd:
echo $(OBJ) > $@
That will create one line in the link.cmd file with:
file1.obj file2.obj file3.obj
What I need is having a one line for each file.
file1.obj
file2.obj
file3.obj
I tried the foreach function but that allows me to insert text between the
file names but not a new line.
Have you got an idea how to solve this within make (I can't run a shell
script)
Regards
Andreas Hagele
Auckland, New Zealand
_______________________________________________
Make-w32 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/make-w32
- Writing Line breaks, Andreas Hagele, 2003/02/13
- RE: Writing Line breaks,
Ashish Bajpai (DS/ESQ2) <=