diff options
Diffstat (limited to 'libbuild2/dist')
-rw-r--r-- | libbuild2/dist/init.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libbuild2/dist/init.cxx b/libbuild2/dist/init.cxx index dd8e25b..5e371bf 100644 --- a/libbuild2/dist/init.cxx +++ b/libbuild2/dist/init.cxx @@ -3,8 +3,9 @@ #include <libbuild2/dist/init.hxx> -#include <libbuild2/scope.hxx> #include <libbuild2/file.hxx> +#include <libbuild2/rule.hxx> +#include <libbuild2/scope.hxx> #include <libbuild2/diagnostics.hxx> #include <libbuild2/config/utility.hxx> @@ -209,6 +210,15 @@ namespace build2 rs.insert_rule<target> (dist_id, 0, "dist", rule_); rs.insert_rule<alias> (dist_id, 0, "dist.alias", rule_); + // We need this rule for out-of-any-project dependencies (for example, + // executables imported from /usr/bin, etc). We are registering it on + // the global scope similar to builtin rules. + // + // See a similar rule in the config module. + // + rs.global_scope ().insert_rule<mtime_target> ( + dist_id, 0, "dist.file", file_rule::instance); + // Configuration. // // Adjust module priority so that the config.dist.* values are saved at |