[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Creating a header file dependency.
From: |
Palani Chinnakannan (pals) |
Subject: |
RE: Creating a header file dependency. |
Date: |
Mon, 31 May 2010 10:24:03 -0700 |
Paul,
Thank you and appreciate your help. I missed this point (in fact
always
misunderstood this, I assumed that the dependency is 1-1 pair wise ie.,
foo -> fee only
and so on...). So, this is really not an issue but my
mis-understanding. Apologize
for the noise.... ; Also explains the other noticed effects of why it
is updating the
file 3 times.
Do you have any idea on how to achieve what I want?. I really want
to have 1-1
dependency and yet not want to write each one of them separately. Is it
Ok if I ask this question
here ? or take it elsewhere?
pals
-----Original Message-----
From: Paul Smith [mailto:address@hidden
Sent: Sunday, May 30, 2010 11:28 PM
To: Palani Chinnakannan (pals)
Cc: address@hidden
Subject: Re: Creating a header file dependency.
On Sun, 2010-05-30 at 22:01 -0700, Palani Chinnakannan (pals) wrote:
> $(EXPORTED_HDRS): $(EXPORT_HDRS)
If you write a rule like:
foo bar biz : fee fie foe
then make interprets that to mean EXACTLY the same thing as:
foo : fee fie foe
bar : fee fie foe
biz : fee fie foe
This explains your problem, I believe, since every target in
$(EXPORTED_HDRS) lists ALL the files in $(EXPORT_HDRS) as a
prerequisite, and so will be considered out of date if ANY file in
$(EXPORT_HDRS) is newer, and each target will be updated.
--
------------------------------------------------------------------------
-------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist