bug-make
[Top][All Lists]
Advanced

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

Re: Creating a header file dependency.


From: Paul Smith
Subject: Re: Creating a header file dependency.
Date: Mon, 31 May 2010 02:27:52 -0400

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




reply via email to

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