aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-17 13:03:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-17 13:03:16 +0200
commit280c4fc46e8485d52a5faaf4c9585b865080ed7b (patch)
tree465b952a5ba557547f16ca6475b8342a9aca528d /libbuild2/install
parent785c6c6f0aefd54cd883230ba66f34f788c8a248 (diff)
Add fallback update-for-uninstall rule to global scope
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/init.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx
index 185fc0f..6f83015 100644
--- a/libbuild2/install/init.cxx
+++ b/libbuild2/install/init.cxx
@@ -383,12 +383,15 @@ 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
+ // Register the fallback file rule for the update-for-[un]install
// operation, similar to update.
//
rs.global_scope ().insert_rule<mtime_target> (
- perform_install_id, "install.file", file_rule::instance);
- }
+ perform_install_id, "install.file", fr);
+
+ rs.global_scope ().insert_rule<mtime_target> (
+ perform_uninstall_id, "uninstall.file", fr);
+ }
// Configuration.
//