help-make
[Top][All Lists]
Advanced

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

Re: Assigning $@ to target-specific variable


From: Greg Chicares
Subject: Re: Assigning $@ to target-specific variable
Date: Thu, 23 Feb 2006 12:50:37 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

On 2006-2-21 11:30 UTC, Ryan Berdeen wrote:
> 
> $(TARGETS): target := $@
> 
> The target variable remains empty.

$cat target_specific.make
x: TARGET0 = $@
x: TARGET1 := $@

.PHONY: x
x:
        @echo target is $(TARGET0)
        @echo this prints nothing: $(TARGET1)

$make -f target_specific.make
target is x
this prints nothing:




reply via email to

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