/* $Id$
This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
add_depend(&source);
}
+Target *Install::get_real_target()
+{
+ return source.get_real_target();
+}
+
void Install::check_rebuild()
{
if(!mtime)
mark_rebuild("Does not exist");
else if(source.get_mtime()>mtime || source.get_size()!=size)
- mark_rebuild(FS::basename(source.get_name())+" has changed");
+ mark_rebuild(source.get_name()+" has changed");
else if(source.get_rebuild())
- mark_rebuild(FS::basename(source.get_name())+" needs rebuilding");
+ mark_rebuild(source.get_name()+" needs rebuilding");
}
Action *Install::create_action()
{
const Component &comp = shlib->get_component();
if(comp.get_type()==Component::LIBRARY)
+ {
mid = "lib";
+ tgtname = shlib->get_soname();
+ }
else if(comp.get_type()==Component::MODULE)
mid = "lib/"+tgt.get_package()->get_name();
}