From cf6b3e34b59ad120111e0c1ead779bbb3a70c38d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Mar 2015 15:43:17 +0200 Subject: Implement clean operation --- build/target.cxx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'build/target.cxx') diff --git a/build/target.cxx b/build/target.cxx index 5cf131f..15d57ca 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -7,16 +7,29 @@ #include #include #include +#include // execute_prerequisites() #include using namespace std; namespace build { - // target + // recipe // - const recipe target::empty_recipe_; + const recipe empty_recipe; + const recipe noop_recipe (&noop_recipe_function); + const recipe default_recipe ( + static_cast (&execute_prerequisites)); + + target_state + noop_recipe_function (action, target&) + { + assert (false); // We shouldn't be called, see target::recipe(). + return target_state::unchanged; + } + // target + // ostream& operator<< (ostream& os, const target& t) { -- cgit v1.1