using namespace std;
using namespace Msp;
+#include <iostream>
+
SourceFile::SourceFile(Builder &b, const Component *c, const string &n):
Target(b, c?&c->get_package():0, n),
comp(c)
{ }
+/**
+Parses include directives from the file and looks up the appropriate targets
+from Builder.
+*/
void SourceFile::find_depends()
{
ifstream in(name.c_str());
if(hdr)
add_depend(hdr);
}
-}
-void SourceFile::check_rebuild()
-{
- for(list<Target *>::iterator i=depends.begin(); i!=depends.end(); ++i)
- vmtime=max(vmtime, (*i)->get_virtual_mtime());
+ deps_ready=true;
}