aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
commitca41ca8f9a6b21588248e5fee1a013363f3f52a8 (patch)
tree6e791ddac1c6f794273a9701c0c7f1bc9ec3d000 /build/target
parent0cee33621a93d3348a1bf19a0c94441b717cbcbc (diff)
Add support for "first" and "last" execution modes
Diffstat (limited to 'build/target')
-rw-r--r--build/target9
1 files changed, 6 insertions, 3 deletions
diff --git a/build/target b/build/target
index 3d395d4..4405104 100644
--- a/build/target
+++ b/build/target
@@ -56,8 +56,11 @@ namespace build
using recipe = std::function<recipe_function>;
// Commonly-used recipes. The default recipe executes the action
- // on all the prerequisites in a loop, skipping ignored (see the
- // execute_prerequisites() in <algorithm> for details).
+ // on all the prerequisites in a loop, skipping ignored. Specially,
+ // for actions with the "first" execution mode, it calls
+ // execute_prerequisites() while for those with the "last" mode --
+ // reverse_execute_prerequisites(); see <operation>, <algorithm>
+ // for details.
//
extern const recipe empty_recipe;
extern const recipe noop_recipe;
@@ -110,7 +113,7 @@ namespace build
// action. It is incremented during the match phase and then decremented
// during execution, before running the recipe. As a result, the recipe
// can detect the last chance (i.e., last dependent) to execute the
- // command (see alsoe first/last execution modes in <operation>).
+ // command (see also the first/last execution modes in <operation>).
//
// Note that setting a new recipe (which happens when we match the rule
// and which in turn is triggered by the first dependent) clears this