help-make
[Top][All Lists]
Advanced

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

Re: Exact paths vs canonical paths


From: Angel Tsankov
Subject: Re: Exact paths vs canonical paths
Date: Mon, 25 Oct 2010 12:18:39 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

On 10/25/2010 12:11 PM, Eli Zaretskii wrote:
From: Angel Tsankov<address@hidden>
Date: Mon, 25 Oct 2010 11:16:05 +0300


How can I get $@ to expand to the exact path of the target rather than
to a canonical path, e.g.

./a.out: a.o
        @echo $@  # Prints a.out instead of ./a.out

Use $(@F) or $(notdir $@) ?

How is this supposed to expand to ./a.out rather than to a.out?


Angel Tsankov




reply via email to

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