aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/buildfile')
-rw-r--r--odb/pgsql/buildfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/pgsql/buildfile b/odb/pgsql/buildfile
index 698d706..1f84db6 100644
--- a/odb/pgsql/buildfile
+++ b/odb/pgsql/buildfile
@@ -10,7 +10,13 @@ lib{odb-pgsql}: {hxx ixx txx cxx}{* -version-build2} {hxx}{version-build2} \
details/build2/{h}{*} \
$imp_libs $int_libs
+# 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-build2}: in{version-build2} $src_root/file{manifest}
+hxx{version-build2}: dist = true
+hxx{version-build2}: 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.