aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-12-02 14:05:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-12-02 14:05:59 +0200
commitd9745e79083e12a2c3eb129a20fc20be3607a4c3 (patch)
tree5bd71b70e54c8a882d25c58973a150ed63763a4b /libbuild2/rule.hxx
parentbf67c830cef225f4521777eecef5ad50a9238ba0 (diff)
Automatically register pattern rules for dist meta-operation
We need to do this in order to inject additional pattern prerequisites which may "pull" additional sources into the distribution.
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index 3eb7775..364e3ff 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -149,6 +149,11 @@ namespace build2
// auxiliary data storage until the pattern's apply_*() calls have been
// made.
//
+ // Note also that when used as part of a pattern, the rule is also register
+ // for the dist meta-operation (unless there is an explicit recipe for dist)
+ // in order to inject additional pattern prerequisites which may "pull"
+ // additional sources into the distribution.
+ //
// Note: not exported.
//
class adhoc_rule_pattern;