This is the mail archive of the
mailing list for the GCC project.
Re: copying a timestamp
Quoting Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
* Joern Rennecke wrote on Sun, Nov 14, 2010 at 03:46:29PM CET:
Or should I better try to use double-colon rules?
If that helps, I suppose yes; we assume GNU make in this makefile
I just realized there is a third alternative: we could exploit the fact
that the same file is handled by make as different targets if named
with different pathnames, i.e.
[$(srcdir)/doc/]tm.texi and $(srcdir)/doc/../doc/tm.texi are different
I'm not sure if that would be exploiting a stable feature or a bug/limitation
that might disappear from GNU make before the FSF GPL/GFDL problems
If we could use a file as differetn make targets in this fashion, that would
be a lot less pain to implement than using double-colon rules.