This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Re%3A%5BPATCH%5D%20document%20the%20use%20of%20stamps%20in%20gcc%2FMakefile.in
On Feb 19, 2006, "Rafael Espíndola" <rafael.espindola@gmail.com> wrote:
> A bit off-topic, but what is the recommended way of doing automatic
> dependency computation?
See the automake manual.
>> I really don't see how touching an empty header file would accomplish
>> anything like that, though.
> Touching a file present in a "include" will cause make to restart (and
> rebuild the graph)
But you sure are not including (in the Makefile sense) the C header
file, right? Besides, I think this only has the effect you mean if
the included file is the target of the rule that modifies it.
> Yes. The only difference in my proposal is that make is restarted
> after removing the stamp to force the recreation of the dependency
> graph.
If you restart make recursively, which is what I suppose you mean, you
get `make -j´ races.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Secretary for FSF Latin America http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}