From eace57190b5577197ea802146e75a4c81a2a5a6e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Dec 2015 09:51:15 +0200 Subject: Add install support --- INSTALL | 12 ++++++++++++ build/bootstrap.build | 1 + buildfile | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 INSTALL 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 -- cgit v1.1