3 This file is part of builder
4 Copyright © 2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include <msp/fs/utils.h>
9 #include "makesymlink.h"
15 Symlink::Symlink(Builder &b, const Package &p, FileTarget &t, const string &n):
16 FileTarget(b, &p, FS::dirname(t.get_path())/n),
23 Target *Symlink::get_buildable_target()
25 return target.get_buildable_target();
28 Target *Symlink::get_real_target()
30 return target.get_real_target();
33 void Symlink::check_rebuild()
36 mark_rebuild("Does not exist");
39 Action *Symlink::create_action()
41 return new MakeSymlink(builder, *this);