I don't have gnu.bash on my newsgroup server, so I'm posting this here.
Here is an example GNU makefile:
function DoThis()
{
echo $0
}
all :
DoThis "Test"
I've seen this done before where a bash function is defined within a
makefile, and can be subsequently called when a target is matched.
However, when I run 'make' I get the following error:
makefile:3: *** missing separator. Stop.
Line 3 corresponds to "function DoThis()".
Does anyone know how to embed a bash function inside a GNU makefile?
Any help appreciated,
Chris
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash