%% gk <[EMAIL PROTECTED]> writes:

  g> I have sourced a function 'xmsubdirs' into my current shell and was
  g> expecting it to be available from a makefile rule but it is not.

This is a shell question, not a GNU make question.  If you do this:

  $ echo 'all:;@env' | make -f-

you'll see that make _does_ export the function variable to the
processes it invokes, just as it would any other environment variable.

If they don't show up in the subshell it means that the shell is not
processing them.  Perhaps bash ignores functions unless it's invoked as
an interactive shell.

You'll have to ask on the bash help/bug lists.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to