+
+}
+
+/**
+Returns the number of targets that need to be rebuilt in order to get this
+target up-to-date.
+*/
+unsigned Target::count_rebuild()
+{
+ if(counted)
+ return 0;
+
+ counted=true;
+ unsigned count=rebuild;
+ for(TargetList::iterator i=depends.begin(); i!=depends.end(); ++i)
+ count+=(*i)->count_rebuild();
+ return count;
+}
+
+/**
+Changes the mtime of the target to the current time.
+*/
+void Target::touch()
+{
+ mtime=Time::now();