aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/bootstrap.build2
-rw-r--r--build/root.build8
-rw-r--r--butl/buildfile4
3 files changed, 9 insertions, 5 deletions
diff --git a/build/bootstrap.build b/build/bootstrap.build
index 7343ae2..eaf7eb9 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -4,8 +4,10 @@
project = libbutl
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
diff --git a/butl/buildfile b/butl/buildfile
index e9820fe..a8b1465 100644
--- a/butl/buildfile
+++ b/butl/buildfile
@@ -19,3 +19,7 @@ lib{butl}: \
cxx.poptions += -I$src_root
lib{butl}: cxx.export.poptions = -I$src_root
+
+# Install into the butl/ subdirectory of, say, /usr/include/.
+#
+install.include = $install.include/butl