/* $Id$
This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
using namespace std;
using namespace Msp;
-/**
-Virtual targets are only rebuilt if their dependencies need rebuilding.
-*/
void VirtualTarget::check_rebuild()
{
+ // Virtual targets are only rebuilt if their dependencies need rebuilding.
for(TargetList::iterator i=depends.begin(); (i!=depends.end() && !rebuild); ++i)
if((*i)->get_rebuild())
mark_rebuild(FS::basename((*i)->get_name())+" needs rebuilding");
}
-/**
-Don't count virtual targets since "building" them causes no action.
-*/
unsigned VirtualTarget::count_rebuild()
{
+ // Don't count virtual targets since "building" them causes no action.
return Target::count_rebuild()-rebuild;
}