aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:06:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:06:41 +0200
commitf76833097e9b02dd1a7ec09d3f467bb3480262a7 (patch)
tree4deb54aec4c0e82a3be348706a9566ce7a695419
parentf26a94d4895cdaeecddf01d923b9c65547ac9d27 (diff)
Add support for install
-rw-r--r--bpkg/buildfile4
-rw-r--r--build/bootstrap.build2
-rw-r--r--build/root.build8
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