aboutsummaryrefslogtreecommitdiff
path: root/buildfile
diff options
context:
space:
mode:
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)