aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-05 06:36:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-05 06:36:30 +0200
commit9ec2bdd87659438b4aa021a10c4a4977ef77118e (patch)
tree12580b4d0b82bce80047b067c3bb221b49be7449 /build2
parentd280946474568925016359be742b59fd6c000c52 (diff)
Add ability to specify ad hoc recipe actions
We are reusing the buildspec syntax for that.
Diffstat (limited to 'build2')
-rw-r--r--build2/b.cli5
-rw-r--r--build2/b.cxx2
2 files changed, 4 insertions, 3 deletions
diff --git a/build2/b.cli b/build2/b.cli
index c6a4e3e..355e2d9 100644
--- a/build2/b.cli
+++ b/build2/b.cli
@@ -48,8 +48,9 @@ namespace build2
omitted, then it defaults to \cb{perform}. If <operation> is omitted,
then it defaults to the default operation for this meta-operation. For
\cb{perform} it is \cb{update}. Finally, if <target> is omitted, then it
- defaults to the current working directory. Some operations and
- meta-operations may take additional <parameters>. For example:
+ defaults to the current working directory. A meta-operation on operation
+ is called an \i{action}. Some operations and meta-operations may take
+ additional <parameters>. For example:
\
$ b # perform(update(./))
diff --git a/build2/b.cxx b/build2/b.cxx
index fdd1b1c..bae40b6 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -28,13 +28,13 @@
#include <libbuild2/dump.hxx>
#include <libbuild2/file.hxx>
#include <libbuild2/rule.hxx>
-#include <libbuild2/spec.hxx>
#include <libbuild2/scope.hxx>
#include <libbuild2/module.hxx>
#include <libbuild2/target.hxx>
#include <libbuild2/context.hxx>
#include <libbuild2/variable.hxx>
#include <libbuild2/algorithm.hxx>
+#include <libbuild2/buildspec.hxx>
#include <libbuild2/operation.hxx>
#include <libbuild2/filesystem.hxx>
#include <libbuild2/diagnostics.hxx>