aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-23 20:27:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-23 20:27:54 +0200
commit3c14928c8d62864974c4242d634938d248fde71f (patch)
treece315f36d3f91bd63d7b6c75250b37c1b0018383
parentbe46ad8ae63e6fc5976b9ca65e296461908aecce (diff)
Add version.hxx back into distribution and don't clean it up from src
-rw-r--r--libbutl/buildfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/buildfile b/libbutl/buildfile
index 632c957..fe2e606 100644
--- a/libbutl/buildfile
+++ b/libbutl/buildfile
@@ -17,7 +17,13 @@ else
#
lib{butl}: file{*.c *.h}
+# 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.