aboutsummaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-20 15:57:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-20 15:57:55 +0200
commit49773c48a3f0b4a16d85798ce07653fb251be708 (patch)
tree3254091515a46b8c66f4f27ef833795b586e0de4 /buildfile
parent5058b155076b004f4abf21be6cf657a3f2cc4d1b (diff)
Don't distribute generated version.hxx and don't clean version
Now the clean operation in src_root should result in state identical to distributed (which appears to be important to some packaging systems, e.g., Debian).
Diffstat (limited to 'buildfile')
-rw-r--r--buildfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/buildfile b/buildfile
index 90a4c09..3ef5829 100644
--- a/buildfile
+++ b/buildfile
@@ -6,8 +6,13 @@
doc{INSTALL LICENSE NEWS README version} \
file{INSTALL.cli bootstrap* config.guess config.sub manifest}
-doc{version}: file{manifest} # Generated by the version module.
-doc{version}: dist = true
+# The version file is auto-generated (by the version module) from manifest.
+# Include it in distribution and 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.
#