]> git.tdb.fi Git - builder.git/blobdiff - source/unlink.cpp
Rework the Target class hierarchy
[builder.git] / source / unlink.cpp
index 208fcf9ff17b739307c38a1c8f39faebe5e7df99..458f5a904f7c5207837c23c33a59e57a868db435 100644 (file)
@@ -6,18 +6,18 @@ Distributed under the LGPL
 */
 
 #include <msp/fs/utils.h>
+#include "filetarget.h"
 #include "sourcepackage.h"
-#include "target.h"
 #include "unlink.h"
 
-Unlink::Unlink(Builder &b, const Target &t):
+Unlink::Unlink(Builder &b, const FileTarget &t):
        Action(b)
 {
        const SourcePackage &spkg=*static_cast<const SourcePackage *>(t.get_package());
 
-       announce(spkg.get_name(), "RM", relative(t.get_name(), spkg.get_source()).str());
+       announce(spkg.get_name(), "RM", relative(t.get_path(), spkg.get_source()).str());
 
-       unlink(t.get_name().c_str());
+       unlink(t.get_path());
 }
 
 int Unlink::check()