]> git.tdb.fi Git - builder.git/blobdiff - source/target.cpp
Move the logic for creating targets into the Component class
[builder.git] / source / target.cpp
index 3b1685324997fcfebce2273d828e39a0a83ea37a..f33e141edbb40758b1c363f3de42c41fb4d833cf 100644 (file)
@@ -95,6 +95,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);