]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfigaction.cpp
Improve target names in announces
[builder.git] / source / pkgconfigaction.cpp
index b21c6b74bde2e79664b19ae0836aa69953d451bf..3e5d6781e1d3c84534058a168379259813d64519 100644 (file)
@@ -5,7 +5,6 @@ Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
-#include <iostream>
 #include <msp/fs/utils.h>
 #include <msp/io/file.h>
 #include <msp/io/print.h>
@@ -21,7 +20,7 @@ PkgConfigAction::PkgConfigAction(Builder &b, const PkgConfig &p):
 {
        const SourcePackage &spkg=*static_cast<const SourcePackage *>(p.get_package());
 
-       announce(spkg.get_name(), "PC", relative(p.get_path(), spkg.get_source()).str());
+       announce(spkg.get_name(), "PC", basename(p.get_path()));
 
        IO::BufferedFile out(p.get_path().str(), IO::M_WRITE);
        // Prefix is already included in the various paths