using namespace Msp;
FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a):
- Target(b, make_name(p, a)),
+ Target(b, generate_name(p, a)),
path(a),
size(0)
{
void FileTarget::touch()
{
mtime = Time::now();
+ signal_bubble_rebuild.emit();
}
void FileTarget::check_rebuild()
if(!tool)
return;
- if(builder.get_build_all())
- mark_rebuild("Rebuilding everything");
- else if(!mtime)
+ if(!mtime)
mark_rebuild("Does not exist");
else
{
mark_rebuild((*i)->get_name()+" has changed");
else if((*i)->needs_rebuild())
mark_rebuild((*i)->get_name()+" needs rebuilding");
- else
- {
- Target *real = ft->get_real_target();
- if(real->needs_rebuild())
- mark_rebuild(real->get_name()+" needs rebuilding");
- }
}
}
mark_rebuild("Package options changed");
}
-string FileTarget::make_name(const Package *pkg, const FS::Path &pth)
+string FileTarget::generate_name(const Package *pkg, const FS::Path &pth)
{
if(const SourcePackage *spkg = dynamic_cast<const SourcePackage *>(pkg))
{