X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=88642dc9ff5f446e1e30ee67e6c64a90df17c919;hb=47496103adfdfe45cdc162a4f6341e924211302d;hp=c1f932791b32f9288daf2731c4ca3b1ee35a9d2f;hpb=525c055f83e9fd748ff878462ed84b0897b46e75;p=builder.git diff --git a/source/target.h b/source/target.h index c1f9327..88642dc 100644 --- a/source/target.h +++ b/source/target.h @@ -75,9 +75,20 @@ public: void set_tool(const Tool &); const Tool *get_tool() const { return tool; } + /** Indicates if it's possible to build this target. */ bool is_buildable() const { return tool!=0; } + + /** Indicates if this target needs rebuilding. Only makes sense after the + target has been prepared. */ bool needs_rebuild() const { return state>PREPARING && state