aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/buildfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/pgsql/buildfile b/odb/pgsql/buildfile
index 771807d..698d706 100644
--- a/odb/pgsql/buildfile
+++ b/odb/pgsql/buildfile
@@ -40,11 +40,13 @@ details/:
--guard-prefix LIBODB_PGSQL_DETAILS --generate-file-scanner \
--cli-namespace odb::pgsql::details::cli --long-usage --generate-specifier
- # Include generated cli files into the distribution. But don't install
- # their headers since they are only used internally in the database
- # implementation.
+ # Include generated cli files into the distribution and don't remove them
+ # when cleaning in src (so that clean results in a state identical to
+ # distributed). But don't install their headers since they are only used
+ # internally in the database implementation.
#
cli.cxx{*}: dist = true
+ cli.cxx{*}: clean = ($src_root != $out_root)
cli.cxx{*}: install = false
}
else