help-make
[Top][All Lists]
Advanced

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

Re: Print variable


From: Paul Smith
Subject: Re: Print variable
Date: Thu, 15 Sep 2011 08:43:28 -0400

On Wed, 2011-09-14 at 23:58 -0700, MD.Mahbubur Rahman wrote:
> Hi Friends, 
> 
> I wrote a make file for learning purpose as I am new to it. 
> Below hilighted code does not work as expected 
> 
> test := "abc" 
> LOCAL_PATH := $(call my-dir) 
> foo: 
>         @echo $(test) 
>         @echo $(LOCAL_PATH)
> 
> Please help me.

You don't have to post the same message multiple times.  In order to
reduce spam, only subscribers are allowed to post directly to the list.
If you're not subscribed to the mailing list then your message will be
held for moderation (someone needs to look at it and approve it) which
can take a while.  Be patient (or, subscribe to the list...)  Thanks.

As for your question, since you don't say how the code works OR what you
expected, or what version of GNU make you're using or what kind of
system you're running on, there's nothing we can tell you.

What I expect the makefile to do is print the string 'abc', then print a
blank line.

If your output doesn't look like that then something is wrong.  If it
does, then it looks right to me.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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