From f76833097e9b02dd1a7ec09d3f467bb3480262a7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Nov 2015 18:06:41 +0200 Subject: Add support for install --- bpkg/buildfile | 4 ++++ build/bootstrap.build | 2 ++ build/root.build | 8 +++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bpkg/buildfile b/bpkg/buildfile index 4ca2839..9b657e4 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -13,3 +13,7 @@ $libs cxx.poptions += -I$src_root lib{bpkg}: cxx.export.poptions = -I$src_root + +# Install into the bpkg/ subdirectory of, say, /usr/include/. +# +install.include = $install.include/bpkg diff --git a/build/bootstrap.build b/build/bootstrap.build index 3023b45..533dcc1 100644 --- a/build/bootstrap.build +++ b/build/bootstrap.build @@ -4,8 +4,10 @@ project = libbpkg version = 0.1.0 + using config using dist using test +using install dist.package = $project-$version diff --git a/build/root.build b/build/root.build index 4f10ff1..3cb7483 100644 --- a/build/root.build +++ b/build/root.build @@ -11,9 +11,7 @@ cxx.ext = cxx cxx.std = 14 -# 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 -- cgit v1.1