aboutsummaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-11-04 17:53:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-11-04 17:56:09 +0300
commit26248cbb1220da0154db8c81791360bad77fa07a (patch)
treee3762270fd4ee37d959c58cc767b8da47c7213ce /buildfile
parentbbb864455ac8d10a0e9a011bf79ac6d62515ad65 (diff)
Fix buildfile to consider tests/*/ subdirectories only when distributing
Diffstat (limited to 'buildfile')
-rw-r--r--buildfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildfile b/buildfile
index 6896329..c229dc8 100644
--- a/buildfile
+++ b/buildfile
@@ -17,7 +17,10 @@ build2_repo="https://stage.build2.org/1"
# See also subprojects in bootstrap.build.
#
d = libpkgconf/ libbutl/ build2/ libsqlite3/ libodb/ libodb-sqlite/ \
-libbpkg/ bpkg/ bdep/ doc/ libbuild2-*/ tests/*/
+libbpkg/ bpkg/ bdep/ doc/ libbuild2-*/
+
+if ($build.meta_operation == 'dist')
+ d += tests/*/
i = \
INSTALL \