X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstall.cpp;h=658a6fb84a0bc5bd867f8311168406008dc25189;hb=5d4bc56c55a3928d0a24f18d1ab06f243d39e0a7;hp=1ade8b2887d4d6279c8feb4f7f1ef6b053052efc;hpb=0d80cabf649b931b26e7055385156c75a7385d35;p=builder.git diff --git a/source/install.cpp b/source/install.cpp index 1ade8b2..658a6fb 100644 --- a/source/install.cpp +++ b/source/install.cpp @@ -1,3 +1,4 @@ +#include #include "builder.h" #include "copy.h" #include "header.h" @@ -5,6 +6,7 @@ #include "package.h" using namespace std; +using namespace Msp; Install::Install(Builder &b, const Package &p, Target &tgt, const string &n): Target(b, &p, n) @@ -21,9 +23,9 @@ void Install::check_rebuild() { Target *dep=depends.front(); if(dep->get_mtime()>mtime) - mark_rebuild(dep->get_name()+" has changed"); + mark_rebuild(Path::basename(dep->get_name())+" has changed"); else if(dep->get_rebuild()) - mark_rebuild(dep->get_name()+" needs rebuilding"); + mark_rebuild(Path::basename(dep->get_name())+" needs rebuilding"); } }