aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
//