This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 anyway.

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 make targets.
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
are resolved.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]