Hello

Here a simple makefile that sets the variable CXX if not defined to
$(FOO)g++

CXX     ?=$(FOO)g++

test:
        @echo $(CXX)

and the some stories

fandre@Ubuntu-x64:~/make$ unset CXX
fandre@Ubuntu-x64:~/make$ make
g++
fandre@Ubuntu-x64:~/make$ make FOO=bar
g++
fandre@Ubuntu-x64:~/make$ FOO=bar make
g++
fandre@Ubuntu-x64:~/make$ export FOO=bar;make
g++

Why CXX is never set to 'barg++' ?

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to