On 9/28/06, Dan Jacobson <[EMAIL PROTECTED]> wrote:
...
Also mention how one can do shell HERE docs please!

I don't think it's possible to embed a here-doc directly in a
Makefile.  In the line passed to the shell, all the newlines except
the very last will be preceded by a backslash, but the here-doc syntax
requires a newline not preceeded by a backslash as the start of the
here-doc contents.  (Here-docs that aren't single quoted also require
a bare newline before the terminator.)

So the answer is: you put the command w/here-doc in a file, or use
echo and a pipe, or in some other way rewrite it with
Makefile-friendly syntax.


Philip Guenther


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to