On Tue, 2010-08-31 at 21:15 +0300, Eli Zaretskii wrote: > > From: Paul Smith <psm...@gnu.org> > > CC: mh...@suse.de, bug-make@gnu.org > > Date: Tue, 31 Aug 2010 13:41:44 -0400 > > > > > How about introducing a new Make function $(sleep) ? ;-) > > > > I don't see how that can work...? We don't want make to sleep, we want > > the job make invokes to sleep (to emulate a compile that takes some > > amount of time). > > A sub-make could sleep, no?
What I'm saying is that if you have a rule like this: foo: $(sleep 0.10) echo hi The recipe is always expanded by make before it invokes the shell command, so it would be make that runs the sleep operation, and make that sleeps, before the shell is even started. I don't think that would help the issue we're trying to solve (I really can't see a valid use-case for $(sleep) to be honest). But, maybe you were thinking of something different? _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make