aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:11:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:11:32 +0300
commit7efb13e90d16bf3f49d405c4167bded1428d239c (patch)
tree99f8438d226bbebacce3ab5589e1d32508f552a3
parent829fae5ca3583404869ddd50408480e91a4f8eb5 (diff)
Don't clean generated cli files from src
-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