%% "Robert P. J. Day" <[EMAIL PROTECTED]> writes: rpjd> but that's clearly not enough. in addition, that make variable rpjd> would also have to be exported so that it was available to all rpjd> submakes, as an environment variable would be.
rpjd> perhaps a better question might be, at the beginning of the rpjd> make, how *exactly* are environment variables added to the mix rpjd> so that, once that processing is done, is there any record that rpjd> those variables came from the calling environment as opposed to, rpjd> say, being set as make variables and then exported? does make rpjd> distinguish between those two? When make starts, all the environment variables are automatically created as make variables. They are marked as exported. When a variable in a makefile is exported it is also marked as exported. When make invokes a subprocess it goes through the make variables and takes everything marked as exported, and puts it into the environment of the subprocess. So no, there is no distinction made. -- ------------------------------------------------------------------------------- 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://lists.gnu.org/mailman/listinfo/help-make
