Gadkari Amit wrote:

I am trying to define variable inside target and trying to print it value.

But I am getting blank value in echo.

I am using Cywin and gnu make version is 3.8

 

A:

            FOO=abc

            $(warning VAR=$(FOO))

 

Also static assignment operator is also not working. It give error 127.

B:

            Test1:=sample


These won't work as written because commands, lines beginning with tabs, are passed (with minimal processing) directly to the shell. See "Chapter 5: Writing the Commands in Rules" in the make manual.

Harvey

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to