make-w32
[Top][All Lists]
Advanced

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

RE: Make-w32 Digest, Vol 3, Issue 6


From: Jay Goldman
Subject: RE: Make-w32 Digest, Vol 3, Issue 6
Date: Fri, 14 Feb 2003 11:33:26 -0500

why not

link.cmd:
        echo >$@
        for xx in $(OBJ) do; echo $$xx >>$@ ; done

sorry if my make/sh is a little rusty (not sure you need $$xx, $xx may
work) - i've stopped using make and switched to ant.

Jay Goldman


-----Original Message-----
------------------------------

Date: Fri, 14 Feb 2003 11:58:43 +1300
From: "Andreas Hagele" <address@hidden>
To: "address@hidden Org" <address@hidden>
Subject: Writing Line breaks
Message-ID: <address@hidden>
Content-Type: text/plain;
        charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Precedence: list
Message: 2

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








reply via email to

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