From 10a80c808c4d17c477c9aadd6d91431f1bc7bcd5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 Aug 2017 13:09:31 +0300 Subject: Don't clean generated cli files from src --- bpkg/buildfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bpkg/buildfile') diff --git a/bpkg/buildfile b/bpkg/buildfile index 5c14313..edf3412 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -100,8 +100,7 @@ if $cli.configured # Help topics. # - {hxx cxx}{repository-signing}: cli{repository-signing} - {hxx cxx}{repository-signing}: dist = true + cli.cxx{repository-signing}: cli{repository-signing} # Option length must be the same to get commands/topics/options aligned. # @@ -120,7 +119,10 @@ if $cli.configured # cli.cxx{repository-signing}: cli.options += --suppress-cli --suppress-inline - # 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