aboutsummaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-04 11:34:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-04 11:34:21 +0200
commitbbb864455ac8d10a0e9a011bf79ac6d62515ad65 (patch)
tree73688f93fe1f6bdf086826f0f1ffade69d1c493e /buildfile
parente5ca7841c94d9e31f6ab28c19eb24017c06d3d5e (diff)
Fix buildfile
Diffstat (limited to 'buildfile')
-rw-r--r--buildfile24
1 files changed, 15 insertions, 9 deletions
diff --git a/buildfile b/buildfile
index d5df087..6896329 100644
--- a/buildfile
+++ b/buildfile
@@ -1,7 +1,9 @@
# file : buildfile
# license : MIT; see accompanying LICENSE file
-assert ($build.meta_operation == 'dist') 'only dist meta-operation allowed'
+assert ($build.meta_operation == 'dist' || \
+ $build.meta_operation == 'configure' || \
+ $build.meta_operation == 'disfigure') 'only dist and configure supported'
# Package repository URL (or path).
#
@@ -9,6 +11,14 @@ build2_repo="https://stage.build2.org/1"
# build2_repo="https://pkg.cppget.org/1/queue/alpha"
# build2_repo="https://pkg.cppget.org/1/alpha"
+# @@ Note that the project directories order is important (prerequisites go
+# first).
+#
+# See also subprojects in bootstrap.build.
+#
+d = libpkgconf/ libbutl/ build2/ libsqlite3/ libodb/ libodb-sqlite/ \
+libbpkg/ bpkg/ bdep/ doc/ libbuild2-*/ tests/*/
+
i = \
INSTALL \
UPGRADE \
@@ -19,16 +29,12 @@ BOOTSTRAP-WINDOWS-MSVC \
BOOTSTRAP-WINDOWS-CLANG \
BOOTSTRAP-WINDOWS-MINGW
-# Note: see also subprojects in bootstrap.build.
-#
-./: {*/ -build/ -tests/ -submodules/} \
- doc{$i README} \
- legal{LICENSE AUTHORS} \
- cli{$i} \
+./: $d \
+ doc{$i README tests/README} \
+ legal{LICENSE AUTHORS} \
+ cli{$i} \
manifest
-./: tests/*/ tests/doc{README}
-
# Obtain the build2, bpkg, bdep, and toolchain versions.
#
bp = $recall($build.path)