]> git.tdb.fi Git - builder.git/blobdiff - source/target.cpp
Add Id tag to all files
[builder.git] / source / target.cpp
index 3b1685324997fcfebce2273d828e39a0a83ea37a..c9c23ad9116165297d602978b9be04c13f902530 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include <msp/path/utils.h>
 #include <msp/time/utils.h>
 #include "action.h"
@@ -95,6 +102,8 @@ Target::Target(Builder &b, const Package *p, const string &n):
        prepared(false),
        counted(false)
 {
+       builder.add_target(this);
+
        struct stat st;
        if(!Path::stat(name, st))
                mtime=Time::TimeStamp::from_unixtime(st.st_mtime);