1 #include <msp/fs/path.h>
2 #include <msp/fs/utils.h>
4 #include "virtualtarget.h"
9 VirtualTarget::VirtualTarget(Builder &b, const string &n):
13 void VirtualTarget::check_rebuild()
15 // Virtual targets are only rebuilt if their dependencies need rebuilding.
16 for(Dependencies::iterator i=depends.begin(); (i!=depends.end() && !needs_rebuild()); ++i)
17 if((*i)->needs_rebuild())
18 mark_rebuild((*i)->get_name()+" needs rebuilding");
21 Task *VirtualTarget::build()