path: root/cutl/buildfile
diff options
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:53:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:53:36 +0300
commit133604f163cc89639b9dfc1d892b56f0ace15792 (patch)
treec6ea2cc1750ec348716eb4232a7215d32c61b0b4 /cutl/buildfile
parent86feafe96adbc62888544c838ccc618c315d824b (diff)
Add version.hxx back into distribution and don't clean it up from src
Diffstat (limited to 'cutl/buildfile')
1 files changed, 6 insertions, 0 deletions
diff --git a/cutl/buildfile b/cutl/buildfile
index c203a2e..17f3360 100644
--- a/cutl/buildfile
+++ b/cutl/buildfile
@@ -6,7 +6,13 @@ lib{cutl}: {hxx ixx txx cxx}{** -version -xml/** -details/boost/**} \
{hxx}{version} \
+# Include the generated version header into the distribution (so that we don't
+# pick up an installed one) and don't remove it when cleaning in src (so that
+# clean results in a state identical to distributed).
hxx{version}: in{version} $src_root/file{manifest}
+hxx{version}: dist = true
+hxx{version}: clean = ($src_root != $out_root)
# For pre-releases use the complete version to make sure they cannot be used
# in place of another pre-release or the final version.