From 6e18ee41d75f73e8ef62ea296a9a2cc5af45acea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Nov 2015 18:15:58 +0200 Subject: Add install support --- build/bootstrap.build | 2 ++ build/root.build | 8 +++----- buildfile | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build/bootstrap.build b/build/bootstrap.build index 9d71e6a..414549d 100644 --- a/build/bootstrap.build +++ b/build/bootstrap.build @@ -5,8 +5,10 @@ project = build2 version = 0.1.0 subprojects = # No subprojects. + using config using dist using test +using install dist.package = $project-$version diff --git a/build/root.build b/build/root.build index 1afbe80..1be6cb7 100644 --- a/build/root.build +++ b/build/root.build @@ -12,9 +12,7 @@ cxx.ext = cxx cxx.std = 14 cxx.poptions += -I$src_root -# All exe{} in tests/ are, well, tests. +# All exe{} in tests/ are, well, tests. Don't install them. # -tests/: -{ - test.exe = true -} +tests/: test.exe = true +tests/: install = false diff --git a/buildfile b/buildfile index 87158a7..b5acde9 100644 --- a/buildfile +++ b/buildfile @@ -5,3 +5,5 @@ d = build/ tests/ ./: $d doc{INSTALL LICENSE} file{bootstrap version} include $d + +doc{INSTALL}: install = false -- cgit v1.1