]> git.tdb.fi Git - builder.git/blobdiff - source/tar.cpp
Move the bpk files into a subdirectory and install them
[builder.git] / source / tar.cpp
index b4ba71e52518c815c45e620fe247e586044f1fde..bcaa85272c5a7e6c24c97249e65fa29162a6a426 100644 (file)
@@ -15,7 +15,7 @@ Tar::Tar(Builder &b):
        Tool(b, "TAR")
 { }
 
-Target *Tar::create_target(const list<Target *> &sources, const string &arg) const
+Target *Tar::create_target(const list<Target *> &sources, const string &arg)
 {
        if(!sources.front()->get_package())
                throw invalid_argument("Tar::create_target");
@@ -24,6 +24,8 @@ Target *Tar::create_target(const list<Target *> &sources, const string &arg) con
        for(list<Target *>::const_iterator i=sources.begin(); i!=sources.end(); ++i)
                tarball->add_dependency(**i);
 
+       tarball->set_tool(*this);
+
        return tarball;
 }