aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:15:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-24 15:15:02 +0300
commita685c476343a4959197c639661fe5ef4d8d4f216 (patch)
tree7e5a0cf86134a853607c6477633d912f9b587a2e
parent12ab71cf5d464456d38fb99426f9f579e2950d01 (diff)
Don't clean generated cli files from src
-rw-r--r--odb/sqlite/buildfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/sqlite/buildfile b/odb/sqlite/buildfile
index 4f438c7..6df413d 100644
--- a/odb/sqlite/buildfile
+++ b/odb/sqlite/buildfile
@@ -40,11 +40,13 @@ details/:
--guard-prefix LIBODB_SQLITE_DETAILS --generate-file-scanner \
--cli-namespace odb::sqlite::details::cli --long-usage
- # 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