summaryrefslogtreecommitdiff
path: root/cli/cli/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-16 15:39:26 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-09 14:19:54 +0300
commit265b9d5202a2e99caeee1f3545ace83b62be54fa (patch)
treec166dfb7d31b3771c9bbd3afc05beb46af80119c /cli/cli/buildfile
parent2d507c0f2e6ca663062f827d4c3dc3271edd353a (diff)
Review
Diffstat (limited to 'cli/cli/buildfile')
-rw-r--r--cli/cli/buildfile19
1 files changed, 5 insertions, 14 deletions
diff --git a/cli/cli/buildfile b/cli/cli/buildfile
index 0b07265..108b3e3 100644
--- a/cli/cli/buildfile
+++ b/cli/cli/buildfile
@@ -27,7 +27,8 @@ libue{cli}: {hxx ixx txx cxx}{** -cli -version -options -**.test...} \
hxx{version}: in{version} $src_root/manifest
-# Regenerate the options parsing code if the cli program is imported.
+# Provide the options parsing code generation recipe if the cli program is
+# available.
#
if ($cli != [null])
{
@@ -38,8 +39,8 @@ if ($cli != [null])
--generate-specifier --generate-modifier \
--suppress-undocumented --reserved-name stdout
- # 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
+ # Include the generated files into the distribution and don't remove them
+ # when cleaning in src (so that clean results in a state identical to
# distributed).
#
dist = true
@@ -49,19 +50,9 @@ if ($cli != [null])
# in case of a forwarded configuration.
#
backlink = overwrite
-
- # @@ The headers are installed by default. Needs to be fixed in build2.
- # Another workaround is making options.cxx a primary ad hoc group
- # member.
- #
- install = false
}
{{
- # @@ Change this to `diag cli ($<[0])` if/when it results with the same
- # diagnostics.
- #
- diag cli $directory($<[0])/cli{options}
-
+ diag cli ($<[0])
$cli $options -o $out_base $path($<)
}}
}