Kent Boortz wrote: > Jeff Trawick <Jeffrey.Trawick at Sun.COM> writes: > >> GNU make builds a target when it does not exist or when it is older >> than a prerequisite. That's different than what you're suggesting -- >> that make rebuilds the target if it is not newer than the >> prerequisite. >> > > Hmm, you are so right, and so does most/all other make implementations > (being a geek I just verified this on Solaris, HP-UX, AIX.....). > > Hmm... wonder why I have seen those "sleep" then in other code, > maybe they like me did not want to spend time finding out what > is "right" and added them thinking "better safe than sorry" ;) > > So as far as I understand, the "sleep" commands can be removed, > > kent > > > Running a snippet on a mix of build hosts, they all said "Nothing to > do for bar" or "bar is up to date" > > % do-on-all --cat "cd /tmp; perl -e 'print \"bar: foo\n\techo REBUILD\n\" > > Makefile'; touch foo bar; make bar" >
Thanks for your follow-up, Kent! Sunanda, plz update the webrev accordingly and I'll +1. Thanks all!