[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with target-specific vars and dependencies
From: |
Tzafrir Cohen |
Subject: |
problem with target-specific vars and dependencies |
Date: |
Fri, 06 Aug 2004 02:30:25 +0300 |
User-agent: |
Mutt/1.5.6i |
Hi
My makefile:
c: var=1
c: b
@echo making $@ from $^, var=$(var)
b: a
@echo making $@ from $^, var=$(var)
a:
$ make b c
making b from a, var=
making c from b, var=1
$ make c
making b from a, var=1
making c from b, var=1
Shouldn't 'make b' get the value of 'var' fom the target-specific
assignment of c?
I use GNU Make version 3.79.1 from Debian/testing (i386).
--
Tzafrir Cohen +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:address@hidden +---------------------------+
- problem with target-specific vars and dependencies,
Tzafrir Cohen <=