On 08/02/13 05:22, Mark Galeck wrote: > --- On Thu, 2/7/13, Michael Stahl <[email protected]> wrote:
>> there is also a more serious problem with just a dependency >> but no rule >> for "bar": make will not re-build targets that depend on >> "bar", because >> without a rule for "bar" make assumes that it's still up to >> date. this >> means that the make invocation that builds "foo" will not >> rebuild all >> dependent files, and the next time you invoke make it will >> see that >> "bar"'s timestamp is newer and _then_ build its dependents. > > > Nothing like that, I just tried: > > > [mark@grid003 ~]$ cat Makefile > bar1: bar > touch $@ > > bar: foo > foo : baz > touch foo bar > [mark@grid003 ~]$ touch bar1 foo bar > [mark@grid003 ~]$ touch baz > [mark@grid003 ~]$ make bar1 > touch foo bar > touch bar1 but how often do users invoke a particular file target manually? [0] /tmp > make touch foo bar [0] /tmp > make touch bar1 is a result far more likely to happen in practice with your Makefile. _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
