aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx17
1 files changed, 15 insertions, 2 deletions
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 <build/scope>
#include <build/search>
#include <build/context>
+#include <build/algorithm> // execute_prerequisites()
#include <build/diagnostics>
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<recipe_function*> (&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)
{