%% Jens Schweikhardt <[EMAIL PROTECTED]> writes:

  js> That said: if gmake produces as output lines of the form var=value,
  js> you can use the shell's eval command:

Note this is _VERY_ hard, because make will fairly often print other
random stuff, like directory information, etc.  Safer is the method I
mentioned, where the makefile writes the stuff to a file which the
parent sources; it's easier for the makefile to control the contents of
the file.  If you're concerned about security, the parent should
construct a secure area for the file to be written and give it to make
as a command line variable setting.

Jens is right; you basically don't want to do this if at all possible.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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