help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU make variable not working


From: Harvey Chapman
Subject: Re: GNU make variable not working
Date: Mon, 30 Mar 2009 10:19:46 -0400
User-agent: Postbox 1.0b10 (Macintosh/2009032619)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]