From feed07e16ff73c5f0b25f2ceb4c08177b5c0e3af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Jul 2020 14:39:33 +0200 Subject: Make sure update-for-{test,install} works for files out of any project --- libbuild2/install/init.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbuild2/install/init.cxx') 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 (perform_install_id, "install.file", gr); bs.insert_rule (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 ( + perform_install_id, "file", file_rule::instance); } // Configuration. -- cgit v1.1