On Fri, 18 Oct 2002, Paul D. Smith wrote: > %% Jean-Cedric Chappelier <[EMAIL PROTECTED]> writes: > > jc> What I want to do is to have a sed command emeded in the make > jc> directives, but this sed command has to have some newlines in there. > > jc> So, is there a way to do this?? > > No. > > This actually turns out to be a long-standing bug in GNU make--or > rather, GNU make is behaving as intended but it turns out that this > behavior is not POSIX-compliant. The next version of GNU make will > handle this properly. > > In the meantime I'm afraid there's nothing you can do except use a > separate script, or else switch to another tool (or version of sed) that > allows you to generate newlines without needing an actual newline > character; in Perl for example you can use the two-character sequence \n > and it is printed as a newline. you can also use awk for this. The nice thing is awk is more universally installed than perl. -Dan _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
