From 6f37af4bd815fc6b75810d07eb2f4c2e9028f9c6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Aug 2017 20:28:54 +0200 Subject: Don't clean generated cli files from src --- build2/buildfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/buildfile') diff --git a/build2/buildfile b/build2/buildfile index 55ce59d..2b24ec9 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -35,7 +35,10 @@ if $cli.configured cli.options += --suppress-undocumented --long-usage --ansi-color \ --page-usage 'build2::print_$name$_' --option-length 20 - # Include generated cli files into the distribution. + # Include the generated cli files into the distribution and don't remove + # them when cleaning in src (so that clean results in a state identical to + # distributed). # - cli.cxx{*}: dist = true + cli.cxx{*}: dist = true + cli.cxx{*}: clean = ($src_root != $out_root) } -- cgit v1.1