]> git.tdb.fi Git - builder.git/blobdiff - source/symlink.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / symlink.cpp
index f962b250c1c9c808735815bee1ade7fe4e9c56b8..915dccb80005adac57a71c63ff40017c9ae9cee6 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/fs/utils.h>
 #include "makesymlink.h"
 #include "symlink.h"
@@ -17,6 +10,12 @@ Symlink::Symlink(Builder &b, const Package &p, FileTarget &t, const string &n):
        target(t)
 {
        buildable = true;
+       add_depend(&target);
+}
+
+Target *Symlink::get_buildable_target()
+{
+       return target.get_buildable_target();
 }
 
 Target *Symlink::get_real_target()