help-make
[Top][All Lists]
Advanced

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

make- target specific variables


From: Venkata Rajasekharu
Subject: make- target specific variables
Date: Tue, 8 Sep 2009 10:12:52 +0530

Hi all,

makefile:
---------------------

VAR = 1 $< 1
all : VAR += 2 $< 2

all: makefile
        echo $(VAR)

-------------------

bash-3.00$ make
1 1 2 makefile 2

Since VAR is a recursively defined variable its value should be evaluated during the command execution.

But why it is not
    "1 makefile 1 2 makefile 2 "


- Regards,
Rajasekhar.


reply via email to

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