diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-09 14:39:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-09 14:56:01 +0200 |
commit | feed07e16ff73c5f0b25f2ceb4c08177b5c0e3af (patch) | |
tree | 285cd2b651d505a933da5a35b5e8f105592108c6 /libbuild2/install | |
parent | e9f64680a152c5aafd023bb5691447012e222590 (diff) |
Make sure update-for-{test,install} works for files out of any project
Diffstat (limited to 'libbuild2/install')
-rw-r--r-- | libbuild2/install/init.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 14cf6ca..31e0f7a 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -334,6 +334,12 @@ namespace build2 bs.insert_rule<target> (perform_install_id, "install.file", gr); bs.insert_rule<target> (perform_uninstall_id, "uninstall.file", gr); + + // Register the fallback file rule for the update-for-install + // operation, similar to update. + // + rs.global_scope ().insert_rule<mtime_target> ( + perform_install_id, "file", file_rule::instance); } // Configuration. |