At 10:52 AM 1/28/2003 -0800, gk wrote:
At 05:23 PM 1/28/2003 +0100, Der Herr Hofrat wrote:
I still think it is a shell problem not make

Here is some more insight.
Apparently what is happening is this:
1. the shell interprets the command-line as it always does
2. make EVALUATES substrings after the equals sign IN THE SHELL AGAIN, before making the makefile variable assignment.
Not quite.
Mystery solved: make evalutes substring after the command-line '=' in the MAKEFILE context, NOT in the shell.
This explains the loss of leading white space and the 'double evaluation'.
Example.

[greg@p3 junk]$ make FOO=' $SHELL'
origin of FOO is: command line
FOO is not empty: FOO=HELL
[greg@p3 junk]$ make FOO=' $$SHELL'
origin of FOO is: command line
FOO is not empty: FOO=/bin/sh
[greg@p3 junk]$



- Greg Keraunen
http://www.xmake.org
http://www.xmlmake.com



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


Reply via email to