help-make
[Top][All Lists]
Advanced

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

Why isn't $@ expanded to the target?


From: Pan ruochen
Subject: Why isn't $@ expanded to the target?
Date: Thu, 16 Oct 2008 11:49:49 +0800

Here is my Makefile script
-----------------------------------------------------------------------------------------
subdir = $(subdir_z)
TARGET = /home/reach/proj/$(subdir)
$(TARGET):
        @echo $(TARGET) $@
define get_dir
$1 = release
endef
$(eval $(call get_dir,subdir_z))
-----------------------------------------------------------------------------------------
$make
 /home/reach/proj/release  /home/reach/proj

The variable $@ and TARGET are not expanded to the same string. How
does this happen?


Best Regards
-------------------------
PRC
Oct 16, 2008




reply via email to

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