This is the mail archive of the
mailing list for the GCC project.
Re: copying a timestamp
* Joern Rennecke wrote on Sun, Nov 14, 2010 at 03:46:29PM CET:
> What we actually need is a timestamp that says that the consistency has been
> checked, and which depends on doc/tm.texi - that's our current s-tm-texi -
> plus a generated file that depends on s-tm-texi, but bears the file system
> time stamp of doc/tm.texi .
> I.e. the s-tm-texi rule should make this file.
> Can we use cp -p for this portably?
Not likely; see the discussion in 'info Autoconf --index cp'.
> In principle we could also use some combination of time and ls and shell
> substitutions, that would use less disk space, but I fear the portability
> issues there could be worse.
Yes, that sounds a lot worse.
> Or should I better try to use double-colon rules?
If that helps, I suppose yes; we assume GNU make in this makefile
Hope that helps.