From: Simon Strandgaard Date: 2006-03-19T10:10:37+09:00 Subject: Re: incremental rebuild with Rake On 3/19/06, Jim Weirich wrote: > Simon Strandgaard wrote: > > I have noticed that the '.exe' file sometimes is'nt being linked. > > What could be the reason for this? > > I'm not able to reproduce this. Hmmmm. > > Check the time stamps on the .o and .exe files. If the .exe is older > than the .o files, rake should attempt to rebuild it. After reading on the mac groups.. the solution seems to be doing "ls #{t.name} > /dev/null" after each operation. I would prefer a cleaner solution to this! Anyways thanks for the help (and for rake). file APPLICATION => O_FILES do |t| sh "g++ #{O_FILES} -o #{t.name}" system("ls #{t.name} > /dev/null") end rule ".o" => [".cpp"] do |t| sh "g++ -c -o #{t.name} #{t.source}" system("ls #{t.name} > /dev/null") end -- Simon Strandgaard