aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/manual.cli7
-rw-r--r--libbuild2/install/init.cxx10
2 files changed, 10 insertions, 7 deletions
diff --git a/doc/manual.cli b/doc/manual.cli
index 104d6cd..bb4f57b 100644
--- a/doc/manual.cli
+++ b/doc/manual.cli
@@ -2244,12 +2244,13 @@ lib exec_root/lib/ config.install.lib
libexec exec_root/libexec/<project>/ config.install.libexec
pkgconfig lib/pkgconfig/ config.install.pkgconfig
-data data_root/share/<project>/ config.install.data
include data_root/include/ config.install.include
+share data_root/share/ config.install.share
+data share/<project>/ config.install.data
-doc data_root/share/doc/<project>/ config.install.doc
+doc share/doc/<project>/ config.install.doc
legal doc/ config.install.legal
-man data_root/share/man/ config.install.man
+man share/man/ config.install.man
man<N> man/man<N>/ config.install.man<N>
\
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx
index 480eec4..fe35757 100644
--- a/libbuild2/install/init.cxx
+++ b/libbuild2/install/init.cxx
@@ -159,12 +159,13 @@ namespace build2
static const dir_path dir_libexec (dir_path ("exec_root") /= "libexec");
static const dir_path dir_pkgconfig (dir_path ("lib") /= "pkgconfig");
- static const dir_path dir_data (dir_path ("data_root") /= "share");
static const dir_path dir_include (dir_path ("data_root") /= "include");
+ static const dir_path dir_share (dir_path ("data_root") /= "share");
+ static const dir_path dir_data ("share");
- static const dir_path dir_doc (dir_path (dir_data) /= "doc");
+ static const dir_path dir_doc (dir_path ("share") /= "doc");
static const dir_path dir_legal ("doc");
- static const dir_path dir_man (dir_path (dir_data) /= "man");
+ static const dir_path dir_man (dir_path ("share") /= "man");
static const dir_path dir_man1 (dir_path ("man") /= "man1");
static const group_rule group_rule_ (true /* see_through_only */);
@@ -263,8 +264,9 @@ namespace build2
set_dir (s, rs, "libexec", dir_path (dir_libexec) /= n, true);
set_dir (s, rs, "pkgconfig", dir_pkgconfig, false, "644");
- set_dir (s, rs, "data", dir_path (dir_data) /= n, true);
set_dir (s, rs, "include", dir_include);
+ set_dir (s, rs, "share", dir_share);
+ set_dir (s, rs, "data", dir_path (dir_data) /= n, true);
set_dir (s, rs, "doc", dir_path (dir_doc) /= n, true);
set_dir (s, rs, "legal", dir_legal);