From 378b2598a305d4e332e52460ca89dd867546a58b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Feb 2018 10:00:46 +0200 Subject: Initial work for default update outer operation While update still uses the old "all update rules update all their prerequisites" assumption, test and install have been fixed not to rely on this. --- build2/cli/init.cxx | 2 ++ build2/cli/rule.cxx | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'build2/cli') diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index df123ba..ede0db1 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -319,6 +319,8 @@ namespace build2 // resolved/linked up. Looks like a general pattern: groups should // resolve on *(update). // + // @@ meta-op wildcard? + // reg (configure_id, update_id); reg (dist_id, update_id); } diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index 42f2176..94b2d24 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -167,15 +167,15 @@ namespace build2 // inject_fsdir (a, t); - // Match prerequisite members. + // Match prerequisites. // match_prerequisite_members (a, t); switch (a) { case perform_update_id: return &perform_update; - case perform_clean_id: return &perform_clean_group; // Standard impl. - default: return noop_recipe; // Configure update. + case perform_clean_id: return &perform_clean_group; // Standard impl. + default: return noop_recipe; // Configure update. } } else -- cgit v1.1