aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-01 09:51:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-01 09:51:15 +0200
commiteace57190b5577197ea802146e75a4c81a2a5a6e (patch)
tree457b6c4684571d6f5d87a9ce44775e6a2c02daa1
parent7d3a98b7cdb61ce269ae5b24d4582d93bf69aa35 (diff)
Add install support
-rw-r--r--INSTALL12
-rw-r--r--build/bootstrap.build1
-rw-r--r--buildfile4
3 files changed, 16 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..6af2214
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,12 @@
+1. Bootstrap build2
+
+$ cd build2/
+$ ./bootstrap
+$ ./build/b-boot update
+
+2. Configure and build the rest:
+
+$ cd ../ # back to build2-toolchains
+$ ./build2/build/b configure update [test]
+
+config.install=/tmp/install
diff --git a/build/bootstrap.build b/build/bootstrap.build
index 4e7f0b7..7114ff8 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -9,5 +9,6 @@ subprojects = libbutl build2 libbpkg bpkg
using config
using dist
using test # Note: needed for dist to work in subprojects with tests.
+using install
dist.package = $project-$version
diff --git a/buildfile b/buildfile
index 878d03c..715f3ec 100644
--- a/buildfile
+++ b/buildfile
@@ -3,5 +3,7 @@
# license : MIT; see accompanying LICENSE file
d = libbutl/ build2/ libbpkg/ bpkg/
-./: $d file{version}
+./: $d doc{INSTALL} file{version}
include $d
+
+$src_base/doc{INSTALL}: install = false