|
From: | Christophe LYON |
Subject: | Re: how to do recursive "subsystem" make properly? |
Date: | Tue, 10 Nov 2009 18:16:46 +0100 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090812) |
Because, libfoo.a is NOT always updated, if by "updated" you mean its time last modified is changed--which is what make cares about.
I thought there was also something about the fact that some commands are actually executed, or not (ie if some commands are executed, the target is flagged as updated whether or not it's timestamp has changed). Is this true?
I have another related question: consider foo: foo.b touch $@ foo.b: foo.d foo.d: touch $@ The first 'make' execution will: $ make touch foo.d touch foo but the subsequent ones will still: $ make touch foo If I change the 1st rule to "foo: foo.d", then: $ make make: `foo' is up to date.I thought the last change was just a shortcut for the initial sample, with a useless rule removed. What is different?
Thanks, Christophe.
[Prev in Thread] | Current Thread | [Next in Thread] |