On Fri, August 31, 2007 11:51 am, Brian Dessent wrote:

> Foreach is just a simple string processing function.  It has no idea
> that "ln -s $(srcfile) ." is actually a command, so the output of the
> foreach expansion is just one long list of words.  That's not a valid
> command.  You need to add a delimiter to separate each ls invocation,
> e.g. "$(foreach srcfile, $(TESTSTUB_SOURCES), ln -s $(srcfile) . ;)".

Does that mean that it was really only invoking the shell once for the
entire string -- now the string is basically "ln -s <foo> . ; ln -s <bar> ."
or similar?  I guess that's a bit different than I was expecting.. I might
also play around w/ using $(shell) as well.. However, your fix did work! 
Thanks!





_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to