From 5a4efaa7ce675c0f68a94aeb822d82896bd29a2d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Mar 2022 13:38:52 +0200 Subject: Make sure install group rule take precedence over fallback file rule --- libbuild2/install/init.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 25dc845..1bf1623 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -380,12 +380,18 @@ namespace build2 bs.insert_rule (perform_install_id, "install.file", fr); bs.insert_rule (perform_uninstall_id, "uninstall.file", fr); - bs.insert_rule (perform_install_id, "install.file", gr); - bs.insert_rule (perform_uninstall_id, "uninstall.file", gr); + // Note: use mtime_target (instead of target) to take precedence over + // the fallback file rules below. + // + bs.insert_rule (perform_install_id, "install.group", gr); + bs.insert_rule (perform_uninstall_id, "uninstall.group", gr); // Register the fallback file rule for the update-for-[un]install // operation, similar to update. // + // @@ Hm, it's a bit fuzzy why we would be updating-for-install + // something outside of any project..? + // rs.global_scope ().insert_rule ( perform_install_id, "install.file", fr); -- cgit v1.1