aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:10:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:10:28 +0200
commitf34833363dfe046ce12d8a17ded246ba0d15d925 (patch)
treee04898bbf21d74a4f40d82f550f76e5bb283c36c
parentfa43659aff787e05e78423f911377e9c4445e103 (diff)
Add install support
-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