]> git.tdb.fi Git - builder.git/blobdiff - source/virtualtarget.cpp
Don't treat using deprecated declarations as errors
[builder.git] / source / virtualtarget.cpp
index 85bdbc0779fd26c0855d8a053338106be48d91a0..a7b4cd73b35362d2d0586ecda7e570d2abaf8b07 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/fs/path.h>
 #include <msp/fs/utils.h>
 #include "builder.h"
@@ -14,15 +7,19 @@ using namespace std;
 using namespace Msp;
 
 VirtualTarget::VirtualTarget(Builder &b, const string &n):
-       Target(b, 0, n)
-{
-       builder.add_target(this);
-}
+       Target(b, n)
+{ }
 
 void VirtualTarget::check_rebuild()
 {
        // Virtual targets are only rebuilt if their dependencies need rebuilding.
-       for(TargetList::iterator i=depends.begin(); (i!=depends.end() && !rebuild); ++i)
-               if((*i)->get_rebuild())
+       for(Dependencies::iterator i=depends.begin(); (i!=depends.end() && !needs_rebuild()); ++i)
+               if((*i)->needs_rebuild())
                        mark_rebuild((*i)->get_name()+" needs rebuilding");
 }
+
+Task *VirtualTarget::build()
+{
+       state = UPTODATE;
+       return 0;
+}