summaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-21 16:16:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-21 16:16:23 +0300
commitd2df9acf2686a665d1d9e296f78d25a346864850 (patch)
treec4fc509b437e70c8e50671446dd3e4c4def304c0 /buildfile
parent78bcdfdb23526d89702cebcc06b36bb3c4c44256 (diff)
Add auto-generating version file
Diffstat (limited to 'buildfile')
-rw-r--r--buildfile10
1 files changed, 9 insertions, 1 deletions
diff --git a/buildfile b/buildfile
index 3274baf..d45fa2d 100644
--- a/buildfile
+++ b/buildfile
@@ -1,7 +1,15 @@
# file : buildfile
# copyright : not copyrighted - public domain
-./: {*/ -build/} doc{INSTALL README} file{manifest}
+./: {*/ -build/} doc{INSTALL README version} file{manifest}
+
+# The version file is auto-generated (by the version module) from manifest.
+# Include it in distribution and don't remove when cleaning in src (so that
+# clean results in a state identical to distributed).
+#
+doc{version}: file{manifest}
+doc{version}: dist = true
+doc{version}: clean = ($src_root != $out_root)
# Don't install tests or the INSTALL file.
#