]> git.tdb.fi Git - builder.git/blobdiff - source/virtualtarget.cpp
Always prepare cmdline to avoid some dependency hassle
[builder.git] / source / virtualtarget.cpp
index 9b41a80a667f7b872b7031a723d52f0a7aedba41..72d369b402ca641fdd021fc3bd1b23849a0b3710 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-200 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -12,20 +12,10 @@ Distributed under the LGPL
 using namespace std;
 using namespace Msp;
 
-/**
-Virtual targets are only rebuilt if their dependencies need rebuilding.
-*/
 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())
                        mark_rebuild(FS::basename((*i)->get_name())+" needs rebuilding");
 }
-
-/**
-Don't count virtual targets since "building" them causes no action.
-*/
-unsigned VirtualTarget::count_rebuild()
-{
-       return Target::count_rebuild()-rebuild;
-}