From 9fa4b867890dfaa3fa086affec23049826765dfe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Mar 2017 13:58:15 +0200 Subject: Fix clean logic --- build2/rule.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'build2/rule.cxx') diff --git a/build2/rule.cxx b/build2/rule.cxx index dd508d0..53f723b 100644 --- a/build2/rule.cxx +++ b/build2/rule.cxx @@ -153,12 +153,10 @@ namespace build2 recipe fsdir_rule:: apply (action a, target& t) const { - // Inject dependency on the parent directory. Note that we don't do it for - // clean since we shouldn't (and can't possibly, since it's our parent) be - // removing it. It also must be first (see perform_update_direct()). + // Inject dependency on the parent directory. Note that it must be first + // (see perform_update_direct()). // - if (a.operation () != clean_id) - inject_fsdir (a, t); + inject_fsdir (a, t); match_prerequisites (a, t); -- cgit v1.1