[greg@p3 junk]$ export FOO=' '; make
FOO: origin=environment
This seems to indicate that the command line behavior is an anomaly/bug.
- Greg
At 03:23 PM 1/23/2003 -0800, I wrote:
I have noticed inconsistent behavior when a variable contains a single space: * If the variable comes from the command-line, make thinks it is empty * If the variable is set in the makefile, make knows it is not empty# Makefile .PHONY: test i:= ifdef internal FOO:=$i # endif list:=hi there # if not empty, we clear the list ifneq ($(FOO),) list:= endif test: @echo $(list) @echo FOO: origin=$(origin FOO) #eof [greg@p3 junk]$ make hi there FOO: origin=undefined [greg@p3 junk]$ make FOO=' ' hi there FOO: origin=command line [greg@p3 junk]$ make internal=1 FOO: origin=file [greg@p3 junk]$ Does this make sense? Is it documented? Is it a bug? - Greg Keraunen http://www.xmake.org http://www.xmlmake.com _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
- Greg Keraunen http://www.xmake.org http://www.xmlmake.com _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
