make-w32
[Top][All Lists]
Advanced

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

Writing Line breaks


From: Andreas Hagele
Subject: Writing Line breaks
Date: Fri, 14 Feb 2003 11:58:43 +1300

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]