aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-13 08:24:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit44d3acdb065205f5fd69834a75b472721bea5443 (patch)
tree026c95b68088120b403140ab5f143c9ea114f90c /libbuild2/rule.hxx
parent741cce26c1caeacc0e578a8bef1efefa993adcc1 (diff)
Support for cleaning up recipe builds
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index 69be2cc..ca17f2e 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -144,6 +144,13 @@ namespace build2
//
public:
build2::rule_match rule_match;
+
+ static const dir_path recipes_build_dir;
+
+ // Scope operation callback that cleans up ad hoc recipe builds.
+ //
+ static target_state
+ clean_recipes_build (action, const scope&, const dir&);
};
// Ad hoc script rule.