X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.cpp;h=9fdb8ee6a56e6b9fb5dfa709cd8d6e90cfdd596e;hb=25376a637c584fc9d491bb6a40c4c483341418b0;hp=504fc7d8ea565139fdda95eb731f61ea103fd60e;hpb=c01dc113eca278100ad0b4572082da619d52662e;p=builder.git diff --git a/source/builder.cpp b/source/builder.cpp index 504fc7d..9fdb8ee 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -581,7 +581,7 @@ int Builder::do_build() if(tgt) { if(tgt->get_tool()) - IO::print("[%-10s] [%-4s] %s\n", tgt->get_package()->get_name(), tgt->get_tool()->get_tag(), tgt->get_name()); + IO::print("%-4s %s\n", tgt->get_tool()->get_tag(), tgt->get_name()); Task *task = tgt->build(); if(task) tasks.push_back(task); @@ -648,7 +648,8 @@ int Builder::do_clean() for(set::iterator i=clean_tgts.begin(); i!=clean_tgts.end(); ++i) if(FileTarget *ft = dynamic_cast(*i)) - unlink(ft->get_path()); + if(ft->get_mtime()) + FS::unlink(ft->get_path()); return 0; }