X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=edfd60cebe7f8f655a5c8011512d05b80b481d9b;hb=4e6fd9a7436d61af311ab83b5ec264b37078fe76;hp=01b115a7a6b5ddf2e008f39299c7c392ae84bcd2;hpb=20994a6f4802f2dbcf01888d0e1996edf554ade5;p=builder.git diff --git a/source/target.h b/source/target.h index 01b115a..edfd60c 100644 --- a/source/target.h +++ b/source/target.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -58,6 +58,14 @@ public: */ Target *get_buildable_target(); + /** + If this target is a proxy for another (such as Install or Symlink), return + that target. Otherwise, return the target itself. + + Implementors should call the function recursively to find the final target. + */ + virtual Target *get_real_target() { return this; } + bool is_buildable() const { return buildable; } bool get_rebuild() const { return rebuild; } const std::string &get_rebuild_reason() const { return rebuild_reason; }