[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
target-specific variable behavior
From: |
chicken . sopas |
Subject: |
target-specific variable behavior |
Date: |
30 Nov 2006 12:53:08 -0800 |
User-agent: |
G2/1.0 |
could someone please explain as to why this is the behavior of
target-specific variable?
the output that I'm expecting is
[expected output]
target1, bar1 bar2
target2, bar1
but this is what i got instead
[real output]
target1, bar1 bar2
target2,
[makefile]
foo := bar1
all : target1 target2
target1 : foo += bar2
target1 :
@echo target1, $(foo)
target2 : foo +=
target2 :
@echo target2, $(foo)
- target-specific variable behavior,
chicken . sopas <=