From 4854da9ba94fc107ff3dcd7eac4e12cecacd9b2e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Mar 2016 14:37:08 +0200 Subject: Remove the depdb (.d) files when cleaning --- build2/context | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'build2/context') diff --git a/build2/context b/build2/context index d7ca3d3..d5b55d3 100644 --- a/build2/context +++ b/build2/context @@ -69,17 +69,19 @@ namespace build2 fs_status mkdir_p (const dir_path&); - // Remove the file and print the standard diagnostics. The second - // argument is only used in diagnostics, to print the target name. - // Passing the path for target will result in the relative path - // being printed. + // Remove the file and print the standard diagnostics. The second argument + // is only used in diagnostics, to print the target name. Passing the path + // for target will result in the relative path being printed. + // + // If verbose is false, then only print the command at verbosity level 3 + // or higher. // template fs_status - rmfile (const path&, const T& target); + rmfile (const path&, const T& target, bool verbose = true); inline fs_status - rmfile (const path& f) {return rmfile (f, f);} + rmfile (const path& f, bool verbose = true) {return rmfile (f, f, verbose);} // Similar to rmfile() but for directories. // -- cgit v1.1